I have a list, and each item is linked, is there a way I can alternate the background colors for each item?
L
You can by hardcoding the sequence, like so:
li, li + li + li, li + li + li + li + li { background-color: black; } li + li, li + li + li + li { background-color: white; }