#navigation ul li { display: inline; } tr:nth-child(even){ background-color: lightgray; } tr:nth-child(odd){ background-color: white; }