css.properties

line-clamp

The line-clamp property clamps the number of lines of text to display.

Formal Syntax

none | [<integer [1,โˆž]> || <'block-ellipsis'>] -webkit-legacy?

See specification

JavaScript Access

// Access via element.style
element.style.lineClamp = 'none';

Browser Support

standard | MDN ยท Spec

FeatureChromeFirefoxSafariEdge
line-clamp66818.217
noneโ€”6818.2โ€”

Related Properties