Posts by Skelun • 21 points
1 post
-
2
votes2
answers37
viewsA: How to set alternately the background color of sections of a CSS page?
Using :nth-child(even) or :nth-of-type(even), you can easily get the desired result. It will select all that were "Even", ie all pairs. Note this example in http://cssdeck.com/labs/rib8dumb: /*…