min(), max(), and clamp()
Widely available
The min()
and max()
CSS functions return the minimum or maximum of the arguments, while clamp()
clamps a value to a given range.
To learn more, see
clamp(),
max(),
min() at MDN.
Compatibility
- 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