...
/Solution: Fluid Typography with Scale Multipliers
Solution: Fluid Typography with Scale Multipliers
Let’s use CSS variables and scale multipliers to apply fluid typography that proportionally sizes headings and paragraphs across viewport widths.
We'll cover the following...
We'll cover the following...
Problem description
Given a section containing <h2>
and <p>
, write CSS rules to:
Define CSS custom properties
--min-root
(16px
) and--max-root
(20px
).Compute
--fluid-root
usingclamp()
to ...