Web features explorer

:nth-child() of <selector>

Newly available since 2023-05-09
Tags: css Groups: CSS > Selectors

The of syntax for the :nth-child() and :nth-last-child() CSS functional pseudo-classes match elements by the relative position of elements, counted from the first or last sibling matching a selector list.

Browser support (view on caniuse.com)