
Support for Nested Container Queries and the CSS if()
function inside CSS Custom Functions make @function
very powerful.
A rather geeky/technical weblog, est. 2001, by Bramus
@function
+ CSS if()
= 🤯min()
, max()
, clamp()
in CSSAhmad takes a look into the CSS min(), max(), and clamp() functions. As with all his articles, he also provides some practical use cases and examples. Regarding the clamping of the font-size of a page, you don’t really need clamp(): This is how to accessibly set a viewport relative scaling `font-size` with a min AND …
Continue reading “Everything I Learned About min()
, max()
, clamp()
in CSS”