WeCodeAcademy
❮ :first-child:nth-child(n) ❯

:last-child

Selects the last child.

Syntax

li:last-child { ... }

Example

Examplehtml
Open in editor »

← All of CSS Selectors