Fluid Sizing: clamp() Playground

The name sign over Grandma Marni’s stall: type a clamp() font-size, drag the stall’s width, and the browser measures clamp’s three terms at widths from 200 to…

Why it matters

Fluid sizing means fewer breakpoints and no size "jumps" at media query edges. clamp() is everywhere: font, padding, gap, column widths. Knowing how the browser picks one of its three values lets you write sizes that fit a phone and a wide screen at once.

The key idea

clamp(MIN, VAL, MAX) = max(MIN, min(VAL, MAX))

Common mistakes

Try it in this playground