How to make Dropdown menu using :hover on <a> in place of hover on <ul>?

Posted by metal-gear-solid on Stack Overflow See other posts from Stack Overflow or by metal-gear-solid
Published on 2009-12-09T18:00:38Z Indexed on 2010/05/23 10:20 UTC
Read the original article Hit count: 249

Filed under:
|
|
|

IE 6 only support :Hover on <a> then can we make css drop down using :hover on <a>

http://htmldog.com/articles/suckerfish/dropdowns/

This example use JavaScript to add hover on LI

'sfhover' class to li elements in the 'nav' id'd ul element when they are 'moused over' and removes it, using a regular expression, when 'moused out'.

So now we've got the Suckerfish pumping out new classes, the next step is to simply duplicate the :hover selector with 'sfhover' class selectors:

© Stack Overflow or respective owner

Related posts about html

Related posts about css