I have a design mockup that I would like to implement using CSS and HTML.
I've started a JSFiddle for it, which currently consists of a table that I need help styling.
<table border="1">
<tr>
<td>grey</td>
<td>grey</td>
<td>grey</td>
<td>grey</td>
<td>grey</td>
</tr>
<tr>
<td>COL1</td>
<td>COL2</td>
<td>COL3</td>
<td>COL4</td>
<td>icon1|icon2|icon3|icon4</td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
How can I alternate the background color between grey and white for every second row? Should I use a server-side variable to calculate a mod 2 or is there an easier way to achieve this using CSS?