Skip to content

CSS Selectors

Position nth-child()

About

The :nth-child() pseudo-class matches elements based on their position among a group of siblings, starting with 1 as the first element.

Third child

The selector :nt-child(3) matches the third child of its parent.