SyntaxFix
Write A Post
Hire A Developer
Questions
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/