The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › multiple li classes within 1 ul
I have an unordered list, and I would like to have each new list item to have an individual class or id, so i can style it differently how would i go about doing that? Different colors and such…
http://jsfiddle.net/Q2X4w/2/
How about this? http://jsfiddle.net/Q2X4w/11/
And then just style based on those individual classes or IDs…..?
Link
li.SomeClassForThisItem { color: red; }
Is that what your looking for? Just give each li its own unique class or id, and create the css for it.
How would I set up the css?