min-inline-size

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

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

/* Usage Example */
.button-icon {
  /* Ensures the icon container is at least 24px wide logically */
  min-inline-size: 24px;
}

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

/* Global values */
min-inline-size: inherit;
min-inline-size: initial;
min-inline-size: revert;
min-inline-size: revert-layer;
min-inline-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