ul li{ list-style-type: none; } ul li:nth-of-type(2n){ background: red; } ul li:nth-of-type(2n + 1){ background: green; }