CSS trick: Fluid text size with “max-font-size” and “min-font-size” | Lars Midgaard

PHOTO EMBED

Tue May 03 2022 00:41:20 GMT+0000 (UTC)

Saved by @itsbrex #css

font-size: clamp(10px, 12px + .8vw, 50px);
content_copyCOPY

This sets the font-size to minimum 10px, maximum 50px, or else the font-size is set to 12px + .8vw.

https://larsmidgaard.no/css-trick-fluid-text-size-with-max-font-size/