Forum Moderators: not2easy

Message Too Old, No Replies

superfish parent current gives its color to all childs

         

barnea10

9:02 am on Nov 20, 2010 (gmt 0)

10+ Year Member



hi

have superfish installed and work fine except :

when i choose parent item all its child get the same text color as the parent - current.
and this is a problem.

when i choose a child only this item (child) gets the current color and thats how i need it.

please advice how to get -
when clicking parent only the parent gets "current" color
and not its childs

thanks !

milosevic

10:22 am on Nov 22, 2010 (gmt 0)

10+ Year Member



If you don't care about IE6 you could try a child selector to select just the parent elements, eg:

#topnav ul > li a

Otherwise, I can't see a way other than to have styles written for each level of the menu.

Eg

ul li a {
color:red
}

ul li li a {
color:white
}

ul li li li a {
color:black
}