X:nth-child(n) Nth Child

Selects by child element. Add "n" to select every 2nd list item. Can also use "odd" and "even". Can also do math, like 3n-2, which selects every 3rd item and subtracts 2, so 3, 6, 9 becomes 1, 4, 7.

Ex: li:nth-child(10) Ex: li:nth-child(2n) Ex: li:nth-child(even) Ex: li:nth-child(3n-2)