Dev Helpers

CSS / Box model and sizing

Minimum inline size

Dev Helpers · October 8, 2026

A logical minimum inline size protects a component from collapsing beyond its usable width. An overly large minimum can force overflow.

Worked example

<style>
  .demo {
    display: inline-block;
    min-inline-size: 10rem;
  }
</style>
<div class="demo">Minimum inline size</div>

Implementation notes

Logical inline size follows writing direction. In vertical text it no longer describes the horizontal dimension familiar from a typical desktop screenshot.

Try it yourself

Place the control in a narrower grid track and test at increased text size.

Open the CSS example →

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

Related articles

Fluid width with a maximum

A fluid container needs a small-screen width and a large-screen maximum. Outer gutters should remain visible at both extremes.

Square aspect ratio

A square ratio reserves equal sides even before media loads. Fit rules decide whether rectangular content is cropped or letterboxed.

Minimum block height

Minimum block size reserves space along the writing mode's block axis. Content can still make the element grow.