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.
.modal { width: min(600px, 90vw); } /* 600px, but never wider than the screen */
Level: Freelancer · More CSS terms at this level
Updated