Jump to content
  • 0

Проблема с реализацией эффекта a:hover


Mila
 Share

Question

У меня возникла проблема с реализацией эффекта a:hover.

Посмотреть можно на сайте http://juice.fsay.net/ajuice/.

Если подвести курсор к нижнему краю топ-меню, можно увидеть мигание фона.

Как это можно исправить?

Вот html-код:

	<div class="nav">
<ul>
<li><a href="<?php echo get_option('home'); ?>/">Главная</a></li>
<li><a href="http://juice.fsay.net/ajuice/o-bloge/">О блоге </a></li>
<li><a href="http://juice.fsay.net/ajuice/karta-bloga/">Карта блога</a></li>
<li><a href="http://juice.fsay.net/ajuice/contact/">Контакты</a></li>
<!-- <?php wp_list_pages('sort_column=menu_order&title_li='); ?> -->
</ul>
<b class="s1">Site Home</b> <b class="s2">History,resume,ets</b> <b class="s3">Sait map</b>
<b class="s4">ICQ,email,post</b>
</div>

Css:

.nav {
margin: 65px 0 0 0;
padding: 10px 0 0 0;
float:right;
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-size: 16px;
border-top: 1px solid #ccc;
border-bottom: 1px solid #ccc;
}
.nav ul {
margin: 0;
padding: 0;
}
.nav li {
margin:0px;
padding: 0;
list-style-type:none;
display:inline;
color:#fff;
}
.nav li a, .nav li a:link, .nav li a:visited, .nav li a:active {
font-weight: bold;
padding: 8px 20px 21px 20px;
text-decoration:none;
color:#fff;
}
.nav li a:hover {
font-weight:bold;
background:#3E6493;
padding: 8px 20px 8px 20px;
text-align:center;
text-decoration:none;
color:#fff;
}

Edited by Mila
Link to comment
Share on other sites

2 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