min-block-size

A logical property that sets the minimum size of an element in the block axis (usually 'height'). It's the logical replacement for 'min-height'.

It is documented as part of the CSS Logical Properties and Values specification.

/* Usage Example */
.sticky-header {
  /* Ensures the header is at least 60px tall logically */
  min-block-size: 60px;
}

/* Syntax */
min-block-size: min-width;

/* Global values */
min-block-size: inherit;
min-block-size: initial;
min-block-size: revert;
min-block-size: revert-layer;
min-block-size: unset;
Widely available Since 2021 95% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2021.

57+
41+
12.1+
79+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC