As opposed to using a table, I have structured sections which at one time were divs. I'm wondering if there is a way to alternate row colors dynamically between each section that is displayed:
<div>
<name-section></name-section> (blue)
<address-section></address-section> (green)
<city-section></city-section> (blue)
<postal-section></postal-section> (green)
</div>
etc.
Check out this jsFiddle. This uses css to do it.
div > *:nth-child(even) {background: green}
div > *:nth-child(odd) {background: blue}