CSS inline-size Property Reference

The CSS inline-size property is a standard property in CSS Logical Properties and Values. Review its formal syntax, computed behavior, and practical declarations.

CSS inline-size Property Reference

The CSS inline-size property is a standard property in CSS Logical Properties and Values. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

inline-size overview

The CSS inline-size property is a standard property in CSS Logical Properties and Values. Review its formal syntax, computed behavior, and practical declarations.

The property is not inherited by default. Use an explicit global keyword when inheritance is intended.

Syntax and formal definition

inline-size formal syntax
FieldValue
Formal syntax<'width'>
Initial valueauto
Applies tosameAsWidthAndHeight
InheritedNo
PercentagesinlineSizeOfContainingBlock
Computed valuesameAsWidthAndHeight
Animation typelpc
Mediavisual
Specification groupCSS Logical Properties and Values
StatusStandard

Practical examples

These declarations demonstrate valid ways to set inline-size. The initial and inherit global keywords remain available even when a property-specific value is preferable.

inline-size live example
CSS .reset-example { inline-size: initial; } .inherit-example { inline-size: inherit; } @supports (inline-size: initial) { .supported { inline-size: initial; } }

Description

The CSS inline-size property is a standard property in CSS Logical Properties and Values. Review its formal syntax, computed behavior, and practical declarations.

References

  1. MDN: inline-size
  2. MDN: CSS Properties Reference

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies