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'.
Quick example
.readable-text {
/* Caps the width of text to 60ch for better readability logically */
max-inline-size: 60ch;
} Quick facts
Initial value
noneInherited
No
Applies to
same as width and height
Animation type
lpc
Values
max-width 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.
Safe to use without fallbacks.
57+
41+
12.1+
79+