# Maximum size

*noun*

say it: **“MAK-suh-mum SIZE”** **/ˈmæksəməm saɪz/**

A limit set with max-width or max-height, so an element can shrink but never grow past that size.

## What do `max-width` and `max-height` do?

**Maximum sizes** stop an element from getting bigger than a set size.

```css
img { max-width: 100%; }   /* never wider than its container */
.article { max-width: 70ch; }
```

## In a sentence

- “Setting a **maximum size** of 70ch with max-width kept the article's lines short enough to read on a wide monitor.”

Level: Apprentice · [More CSS terms at this level](https://www.ask-codey.com/glossary?category=css&level=2)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/maximum-size
