| Class | Description | |
|---|---|---|
line-clamp-1Truncates text to a single line and hides overflow. Useful for titles, labels, and compact previews. CSS Rules Usage Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The | .line-clamp-1 | Truncates text to a single line and hides overflow. Useful for titles, labels, and compact previews. |
line-clamp-2Clamps text to 2 lines with an ellipsis. CSS Rules Usage Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The | .line-clamp-2 | Clamps text to 2 lines with an ellipsis. |
line-clamp-3Clamps text to 3 lines with an ellipsis. CSS Rules Usage Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The | .line-clamp-3 | Clamps text to 3 lines with an ellipsis. |
line-clamp-4Limits text to four visible lines and clips the rest. Good for cards and content previews. CSS Rules Usage Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The | .line-clamp-4 | Limits text to four visible lines and clips the rest. Good for cards and content previews. |
line-clamp-5Limits text to five visible lines and clips the rest. Good for cards and content previews. CSS Rules Usage Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The | .line-clamp-5 | Limits text to five visible lines and clips the rest. Good for cards and content previews. |
line-clamp-6Limits text to six visible lines and clips the rest. Good for cards and content previews. CSS Rules Usage Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The | .line-clamp-6 | Limits text to six visible lines and clips the rest. Good for cards and content previews. |
line-clamp-noneRemoves line clamping and restores normal multiline text overflow. CSS Rules Usage Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The | .line-clamp-none | Removes line clamping and restores normal multiline text overflow. |