inline-size
A logical property that sets the 'width' of an element relative to the direction of text. In horizontal languages (like English), it's exactly the same as 'width'.
It is documented as part of the CSS Logical Properties and Values specification.
Syntax
/* Usage Example */
.container {
/* Sets the width in a logical way (resilient to RTL changes) */
inline-size: 800px;
max-inline-size: 90%;
}
/* Syntax */
inline-size: width;
/* Global values */
inline-size: inherit;
inline-size: initial;
inline-size: revert;
inline-size: revert-layer;
inline-size: unset;
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+