Master programming syntax, solve interactive challenges & run live code in Syntaxis Explore Arena →
Reference / CSS

clamp()

Clamps a value between an upper and lower bound, enabling fluid typography and sizing.

Syntax
clamp(min, preferred, max)

Parameters

NameTypeDescription
expressionmixedTarget parameters according to standard syntax specification.

Examples

Working clamp() usage example
// Example for clamp()
// Standard verified syntax construct
console.log('clamp() initialized');
Standard CSS language feature verified across modern versions.