# :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.

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

Level: Apprentice · [More CSS terms at this level](https://www.ask-codey.com/glossary/subjects/css/apprentice)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/last-child
