I have a dynamically generated list that has potentially up to about 5 levels. I want the listed item text to underline when I hover over the listed item, however not the parent li.
see example.
you see when you hover on “this”, the above parent li, underlines aswell.
Any ideas?
Cheers
That seems hard to achieve, since when you point the child
lielement you’re also effectively pointing its parent.There is a solution, though: add a
spantag to your menu items, and make that tag hoverable: http://jsfiddle.net/ca7fL/16/