I'm trying to make a menu work so that the menu remains in hover state when it's submenu/child menu is selected:
see example here: http://cssdesk.com/5vJP6
If anyone could explain what needs to be added to the CSS to make this work that would be great. I don't want to use any external javascript to make this happen!
I've had a look at a couple of similar questions here, but none of their answers worked for me
thanks
This was super helpful! Here's what I ended up using to make sure the background and font color of my main nav didn't override the sub nav
Define the
:hover
on theli
element instead of the link, for example:(Dito for all
a:hover
s)However this won't work in IE6. You'll need to have to JavaScript solution there.
I added this:
Which resolved my problem :-)