
clamp() is a new CSS function that is used to clamp a dimension between two values. ποΈ
It can be considered as a shorthand for the following:
min(a, max(b, c)
π With the syntax clamp(min, x, max), the function returns:
β x is it is between min and max
β min if x is less than min
β max if x is greater than max
This is useful for creating responsive items which you want to restrict within particular dimensions.
#css
#html
#frontend
#webdesign
#fullstack
#webdevelopment
#coding
#programming
#javascript
Post by @baby_wolf_codes