Venom,
Yes that makes sense. Trouble is you can't address a specific li in a list unless it is the first-child (pseudo-class).
So you come back to having to give your target li a class (or an id) such that it can be addressed in css.
You say the list is dynamic. You need to inject a class/id wherever the list is built. If it is built in javascript you could also style it directly with emement.style.whatevere.... but this is cumbersome compared with giving it a .styleName .
Airshow
edit: more or less exactly what kanaku says above.
Last edited by Airshow; Jul 14th, 2009 at 8:23 am.
Reputation Points: 302
Solved Threads: 358
WiFi Lounge Lizard
Offline 2,524 posts
since Apr 2009