Dev Helpers

CSS / Box model and sizing

Minimum block height

Dev Helpers · October 4, 2026

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

Worked example

<style>
  .demo {
    min-height: 7rem;
  }
</style>
<div class="demo">Minimum block height</div>

Implementation notes

A fixed block size can crop an enlarged label. A minimum lets the content dictate the final dimension above the reserved floor.

Try it yourself

Double the text size and switch the sample to vertical writing.

Open the CSS example →

Editorial date October 4, 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 inline size

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