Fluid font size with clamp()
clamp(min, preferred, max) picks the preferred value when it sits between the bounds, otherwise the nearest bound wins. Here the preferred term is viewport width in vw (1–10 in steps of 0.1), minimum size is 10–32px, and maximum is 20–72px. The copied rule targets font-size on a .title class.
Reading the clamp formula on a narrow screen
Drag Preview width between 240px and 720px to simulate viewports. The headline shows an approximate computed px size treating that width as the full viewport (preferred vw ÷ 100 × preview width, then clamped). It is a teaching aid, not a substitute for DevTools on your real layout with sidebar and padding.
Can I use clamp for spacing, not type?
Yes in modern browsers—the same function works on padding or gap. This page only outputs a font-size example. Swap the property name after copying if you want fluid section padding with the same triple.
What if preferred vw is zero?
The slider minimum is 1vw, so you always get some viewport scaling in the generated string. For a fixed size, skip clamp and set px directly.