Jump to content
  • 0

Проблема с меню


Caeterra
 Share

Question

Всем привет! Помогите решить такую проблему?

У меня меню с кодом:


<div class="container">
<ul class="menu">
<li><a href="#"> <span>Ссылка1</span></a></li>
<li><a href="#"> <span>>Ссылка2</span></a></li>
<li><a href="#"> <span>>Ссылка3</span></a></li>
<li><a href="#"> <span>>Ссылка4</span></a></li>
<li><a href="#"> <span>>Ссылка5</span></a>></li>
</ul>
</div>

CSS:


.container{
width: 100%;
height: 100%;
position: relative;
}


.menu{
width: 100%;
margin: 0 auto;
position: relative;
}

.menu li{
list-style: none;
}

.menu li a{
display: block;
padding: 0px 0 0px 10px;
text-align: left;
position: relative;
z-index: 110;
}

.menu li:hover a{
background: url("/img/vector_right.png") ;
background-repeat:no-repeat;
background-position: 0 -1px;
text-decoration: underline;
}

.menu li a span{
display:block;
}

.menu li a span:first-child{
padding:3px 0 7px 0;
}

Проблема в том, чтобы первая ссылка по умолчанию была выделена, а при наведении на остальные становилась обычного цвета, и соответственно когда убираешь курсор с cskjr? она снова становилась выделенной..

Есть решение?

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy