Typography

Clamp

A technique for fluid type sizing that sets a minimum, preferred, and maximum value.

font-size: clamp(1rem, 2vw + 1rem, 2rem).

Line clamp limits text to a fixed number of lines and adds an ellipsis when it overflows past them.

line-clamp: 2

Tap the example to replay it · press and hold to slow it down

One of 266 cards in flashcards. Browse every card.