# min()

Uses the smallest of several values.

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

`min()` uses the smallest of several values, so an element never gets bigger than one of them.

```css
.modal { width: min(600px, 90vw); }   /* 600px, but never wider than the screen */
```

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/min-css
