WeCodeAcademy
❮ :last-child:not(selector) ❯

:nth-child(n)

Selects children by position.

Syntax

li:nth-child(2n) { ... }

Example

Examplehtml
Open in editor »

← All of CSS Selectors