I’m needing to to iterate thru a grid, and apply changes to the children of each row. For instance, If I had a grid that was 3 rows, how could I make it so each row’s children could be a different color? Here is a JSFiddle of some basic HTML + CSS to create a grid. I’m wanting to make it so each row would be a different color.
http://jsfiddle.net/onestepcreative/24Ljw/6/
Thoughts? Thanks in advance!
Here’s a version with a simple javascript. You can also do this with just CSS using the nth-child selector
http://jsfiddle.net/24Ljw/8/