Skip to content

CSS Selectors

Position nth-child(n) with offset


The :nth-child() pseudo-class supports a counter variable n which starts at 0 and increments by 1 for every element. It allows you to define an offset before matching the first element.

Every element after the third

The selector :nth-child(n + 4) skips the first three elements and then matches every element.

  • Change the selector to skip the first two elements and then match every element