🌐Fluid Typography
Also known as Fluid Type, Responsive Typography, CSS clamp() Type
Text that grows bit by bit as the screen gets wider. It has a top and a bottom size.
Think of it like
It is like a balloon that grows as you blow. The text gets bigger smoothly as the screen grows.
Example
A heading is 28 pixels on a phone and grows bit by bit to 48 on a wide screen, with no sudden jump.
Why it matters
Headings fit every screen without a stack of breakpoints for each size.
Definition
Example code
css
h1 { font-size: clamp(1.75rem, 1rem + 3vw, 3rem); }Common mistake
Key takeaways
- 1Grows smoothly. No sudden jumps.
- 2A floor and a ceiling. Set with clamp().
- 3Still zooms. Mix rem with vw.