description & Usage
To determine the size of an inline element, we use the inline-size property.
Informations
# | Description |
---|---|
Default Value | auto |
Inherited | no |
Animatable | yes |
Version | CSS3 |
JavaScript syntax | object.style.inlineSize="250px" |
Browser compatibility and Support
# | Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|---|
inline-size |
Syntax
Values
Values | Description |
---|---|
auto | Default. |
length | Determines the distance in centimeters, pixels, etc. |
% | Calculates the distance as a percentage. |
initial | Adds this value to its default property. |
inherit | It inherits this value from its parent tag. |