Dev Helpers

Tailwind CSS / Box model and sizing

Maximum reading width

Dev Helpers · October 16, 2026

A max-width utility constrains a reading column even when its parent occupies the whole viewport. Font size still determines how many characters fit.

Worked example

<p class="demo max-w-[32ch]">
  A comfortable line length makes longer paragraphs easier to read and follow.
</p>

Implementation notes

A maximum based on rem follows the reader's chosen base text size. Verify that a larger text preference produces the intended line length.

Try it yourself

Compare prose at the default text size and at 200 percent zoom.

Open the Tailwind CSS example →

Editorial date October 16, 2026 · Published December 6, 2026

Related articles

Content-box sizing

The box-content utility deliberately sizes the inner area. This can help when reproducing a measured content region with a separate frame.

Minimum inline size

Minimum width belongs to the element that must remain usable. A minimum on a parent can unnecessarily force the entire page to scroll.

Border-box sizing

The box-border utility keeps borders and padding inside a declared width. Use it where a local styling reset changes sizing conventions.