I have a menu with three levels of links and I have found that the css you use does not provide for this number of levels. I would see the third level always open when opening the second. I have re-written the CSS using: http://www.xs4all.nl/~peterned/csshover.html as a guide and have come up with this:
ul.nice-menu ul,
ul.nice-menu li:hover ul ul, ul.nice-menu li.over ul ul,
ul.nice-menu li:hover li:hover ul ul, ul.nice-menu li.over li.over ul ul {
display:none;
}
ul.nice-menu li:hover ul, ul.nice-menu li.over ul,
ul.nice-menu li:hover li:hover ul, ul.nice-menu li.over li.over ul,
ul.nice-menu li:hover li:hover li:hover ul, ul.nice-menu li.over li.over li.over ul {
display:block;
}
Also the links did not display correctly so I adjusted them with this:
ul.nice-menu-down ul ul {
width: 12.5em;
left: 12.5em;
top: -5px;
}
With these alterations you can now have this structure:
link1 link2^ link3
link4
link5> link7
link6 link8> link10
link9 link11
Comments
Comment #1
gumnaam1 commentedWow this is exactly I was looking for.
btw. is this fix limited to level -3 or goes down any number of levels.
Comment #2
cooperaj commentedYes, it is limited to 3 levels. But it's just a case of adding more rules to the first block of code I posted. The syntax should be obvious but just in case here is a four level snippet
Comment #3
steveparks commentedThanks very much - that solved a problem that I'd been tearing my hair out about!
You've just demonstrated the best thing about open source
Thanks
Steve
Comment #4
liquidcms commentedwhooo hooo.. too cool...
thanks.
Comment #5
irishsuperfly commentedThanks! This helped me greatly - I have 4 levels and things were pretty mixed up after I upgraded.
Comment #6
jeffreyblove commentedIE7 issues show expanded
Cheers,
JeffL
Comment #7
add1sun commentedchanging this to the 5 dev version since that is where active work is going on.
Comment #8
add1sun commentedHere is a patch that makes third and fourth level children only pop when the immediate parent is hovered.
Comment #9
add1sun commented*sigh* I'm really tired. Attaching the patch this time.
Comment #10
add1sun commentedNew patch. The fourth *child* now pops up (fourth level meant third child). This means you can have menus thusly:
Main Item > child 1 > child2 > child 3 > child 4
I don't think we need more levels than that since menus deeper than that should probably be rethought anyway and folks can see the css pattern that makes it happen and customize it more levels themselves if they need it.
Please test this so we can get it in. Thanks.
Comment #11
add1sun commentedApplied to the 5 branch.
Comment #12
(not verified) commented