# Height

Sets how tall an element is.

## What does the `height` property do?

`height` sets how tall an element's content area is. Often it's best left alone so content decides.

```css
.hero-banner { height: 400px; }
```

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

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/height
