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.
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
Updated