clamp()

A value that scales between a minimum and maximum, often used for fluid font sizes.

CSS

Example

h1 { font-size: clamp(38px, 4.6vw, 62px); }

Never smaller than 38px, never larger than 62px, fluid in between.

Related

Updated 2026-11-26 Core Web Vitals →