max-inline-size
A logical property that sets the maximum size of an element in the inline axis (usually 'width'). It's the logical replacement for 'max-width'.
It is documented as part of the CSS Logical Properties and Values specification.
Syntax
/* Usage Example */
.readable-text {
/* Caps the width of text to 60ch for better readability logically */
max-inline-size: 60ch;
}
/* Syntax */
max-inline-size: max-width;
/* Global values */
max-inline-size: inherit;
max-inline-size: initial;
max-inline-size: revert;
max-inline-size: revert-layer;
max-inline-size: unset;
max-inline-size Browser support
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+