Dev Helpers

Tailwind CSS / Box model and sizing

Minimum inline size

Dev Helpers · July 4, 2026

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

Worked example

<div class="demo inline-block min-w-40">Minimum inline size</div>

Implementation notes

Nested minimum widths compound quickly. Check the child, the flex item and the sidebar before assigning overflow to the page.

Try it yourself

Test the component inside a narrow sidebar.

Open the Tailwind CSS example →

Editorial date July 4, 2026 · Published December 6, 2026

Related articles

Maximum reading width

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

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.

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.