:first-child

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

What does :first-child do?

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

.menu li:first-child { border-left: none; }

Level: Apprentice · More CSS terms at this level

Updated