Fluid Typography with One Line
Tired of writing 5 media queries just to make your H1 look good on a phone? clamp() is your new best friend.
The Syntax
font-size: clamp(2rem, 5vw, 4rem); tells the browser to stay between 2rem and 4rem, scaling perfectly based on the viewport width.
Grab more snippets in our HTML/CSS library!
