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