Trying to get your head round :nth-child? Me too 🧐

:nth-child(1)
select the first child only

:nth-child(even)
select every even numbered element - :nth-child(odd) works in the same way

:nth-child(2n+4)
select every second element starting with the fourth

:nth-child(3n)
select every third element

:nth-child(3n-1)
select every third element starting with the second

:nth-child(n+4)
select all but the first three

:nth-child(-n+4)
select only the first four

:nth-last-child(2)
select the second to last element