See http://bldd.nl/prototypes/megamenu/test23.php
I am stuck with this, if you rollover the submenu navigation you see the corresponding mainmenu rollover sprite?
How can i fix this and optimize the css?
See http://bldd.nl/prototypes/megamenu/test23.php
I am stuck with this, if you rollover the submenu navigation you see the corresponding mainmenu rollover sprite?
How can i fix this and optimize the css?
Your CSS uses a descendant selector: #jobs-news a:hover
.
This will match any a:hover
inside of #jobs-news
, even if it's actually in one of its children.
The simplest solution would be to give the root a
elements their own class (eg, <a class="MainLink" href="#">
), then change the hover selectors to #jobs-news a.MainLink:hover
.
This way, it wouldn't match the subitems, since they wouldn't have the MainLink
class.
If you don't need to support IE6, you could also use a child selector: #jobs-news > a:hover