table.reference tr:nth-child(odd) { background-color:#f1f1f1; } table.reference tr:nth-child(even){ background-color:#ffffff; }