CSS inline-size property
Browser support · legacy reference
ChromeFully supports
SafariFully supports
FirefoxFully supports
Internet ExplorerNot supported
EdgeNot supported
OperaFully supports
Description
CSS inline-size property defines width or height for an element. The selection of height or width depends upon the writing-mode.
The inline-size behaves as width for the horizontal-tb writing-mode.
The inline-size behaves as height for the vertical-* writing-mode.
Change the direction of flow of text.
horizontal-tb vertical-lr vertical-rl
Syntax
inline-size : auto | +ve length | +ve percentage
Property values
autoDefault
-
auto value means the size will be changed automatically according to the content.
- Try it
inline-size: auto;
Applicable to
It applies to all elements except non-replaced inline.