# max()

Uses the largest of several values.

## What does `max()` do in CSS?

`max()` uses the largest of several values, so an element never gets smaller than one of them.

```css
.sidebar { width: max(200px, 20%); }
```

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

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/max-css
