:last-child

Selects an element that is the last child of its parent.

What does :last-child do?

:last-child picks an element only when it's the last child of its parent.

.list-item:last-child { border-bottom: none; }

Level: Apprentice · More CSS terms at this level

Updated