Hello, sorry for my 2nd help post of the day (my horoscope said it would be a bad day). I promise I tried a quick google search, but couldn't get my hands on a relevant page... probably because I'm not using the proper terminology or something.
"multiple-class select"? "class chaining"?
I don't know.... Anyway, I have a list (menu) kind of like this...
I want a css selector that will target the li that is both parent and active...Code:<ul id="nav"> <li class="parent"> <li> <li> <li class="parent active"> <li> <li> <li class="parent"> <li> ... </ul>
My first guess is:
But I have no idea whether this is the correct way to accomplish this, if there is a better way, or if there are browser issues with the method, or if this is completely unstandardized syntax that I should avoid.Code:li.parent.active {}
Some quick experimentation seemed to show that this selection method works on FF3.5, but IE6 only pays attention to the 2nd class. Hmm... it's hard to tell what's going on in IE6 sometimes, though.
If anyone has some information on this topic or can point me toward some I would be greatly indebted.



LinkBack URL