Also called: calc, min(), max()
Example
width: min(1100px, 100% - 32px) keeps the content centred with a margin on phones.
In code
.sidebar { width: calc(100% - 280px); }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
Learn more
- calc() CSS functionMDN Web Docs (opens in a new tab)
- min() CSS functionMDN Web Docs (opens in a new tab)
- max() CSS functionMDN Web Docs (opens in a new tab)
Related terms
Added 2026-11-30 · Last reviewed 2026-11-30