css alternate color table code example Example: alternate color css table tr:nth-child(odd) td{ ... } table tr:nth-child(even) td{ ... }