Link to home
Start Free TrialLog in
Avatar of rivkamak
rivkamakFlag for United States of America

asked on

li menu

I have a menu made out of

<ul>
<li>
    <ul>
            <li></li>
      </ul>
</li></ul>

Open in new window


when I hover and the submenu opens,  the hover affect happens on the second ul/li and the main tab doesn't highlite anymore.
is there a way to keep the hover on the main li and on the sub li?
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

Show us your CSS or post a link to the page please.

Cd&
Avatar of rivkamak

ASKER

Try #nav ul:hover {background:whatever you want}

You also have a problem with the menu going behind other elements.  you should add a z-index to the ul with a high enough value to be on top.

Cd&
If I do ul:hover , the whole ul highlites.
I want just the li that is on the second ul to have a hover state
ASKER CERTIFIED SOLUTION
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial