tr:nth-child(odd){ background: #000000; color: #FFFFFF; } tr:nth-child(even){ background: #FFFFFF; color: #000000; }