clamp()

The CSS function clamp(min, preferred, max), which uses the preferred value but never goes below min or above max.

In more detail

For fluid typography the preferred value depends on the viewport width, for example 1.25rem + 3vw. The lesson computes it from a slope (how fast size changes per pixel of width) and an intercept.

Related terms

Taught in

References