Is it possible to use CSS pseudo-classes to select even and odd instances of list items?
I\'d expect the following to produce a list of alternating colors, but inste
Use this:
li { color:blue; } li:nth-child(odd) { color:green; } li:nth-child(even) { color:red; }
See here for info on browser support: http://kimblim.dk/css-tests/selectors/