min(), max(), and clamp()
Widely available since 2023-01-28
The min()
and max()
CSS functions return the minimum or maximum of the arguments, while clamp()
clamps a value to a given range.
Learning resources on MDN
Browser support
- Chrome 79 Released on 2019-12-10
- Chrome Android 79 Released on 2019-12-17
- Edge 79 Released on 2020-01-15
- Firefox 75 Released on 2020-04-07
- Firefox for Android 79 Released on 2020-07-28
- Safari 13.1 Released on 2020-03-24
- Safari on iOS 13.4 Released on 2020-03-24