
Originally Posted by
epp_b
Not in IE, it doesn't.
As Paul said, yes it does on anchors (which those links should be) all the way back to IE 5.0 - if you are trying to style something other than anchors you probably have the wrong markup and CSS.
Which is why we need to SEE your markup and CSS to tell you where things are going wrong and/or what you are doing wrong.
... and only IE6/earlier has issues with :hover on any element -- which a simple .htc file can compensate for quite easily.
Though really:
Proper markup for a menu like that:
Code:
<ul class="menu">
<li><a href="#">menus</a></li>
<li><a href="#">hours</a></li>
<li><a href="#">staff</a></li>
<li><a href="#">reservations</a></li>
<li><a href="#">specials</a></li>
</ul>
CSS I would use to apply your effects and styling.
Code:
.menu {
list-style:none;
}
.menu li {
display:inline; /* just get this the *** out of the way */
}
.menu a {
display:block;
color:#888;
}
/* don't forget :active and :focus for keyboard users */
.menu a:active,
.menu a:focus,
.menu a:hover {
color:#000;
}
Should work fine all the way back to IE 5.0
Bookmarks