Skip to content

Content and overflow

Dynamic content should be allowed to use the space it needs. A fixed height is a product decision, not a shortcut for matching one screenshot.

The upper fixed-height card clips text; the lower Hug-height card retains it and moves the next card down
Compare the same text above and below: in this example, Hug height preserves the final lines and moves the next card down. Fixed height, scrolling and truncation are not universally forbidden; each needs an explicit, appropriate overflow policy. Open full size.

The visual introduction shows why these decisions matter to the team.

Let text, data, and lists grow. Test long words, prices, names, localization, errors, and empty states.

Use it when the product needs a known viewport, crop, media frame, or scroll region. Then decide what happens when content does not fit. A growing block is no longer fixed-height; if the boundary must stay fixed, define how the content behaves inside it:

  • wrap within the boundary; if the whole block must grow, use content-driven height instead;
  • clip with a visible reason;
  • scroll inside a named region;
  • truncate with an accessible way to read the rest.

Do not use manual line breaks or separate mobile text only to preserve a composition.

Verify that content, focus, validation messages, and interactive targets are not clipped accidentally. See responsive behavior for intermediate widths.

The rule is ready when the team knows how the block behaves with normal, long, empty, and error data.

Zoom and scroll to read details. Esc closes.