CSS flex-basis Property Reference

The CSS flex-basis property is a standard property in CSS Flexible Box Layout. Review its formal syntax, computed behavior, and practical declarations.

CSS flex-basis Property Reference

The CSS flex-basis property is a standard property in CSS Flexible Box Layout. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

flex-basis overview

The CSS flex-basis property is a standard property in CSS Flexible Box Layout. 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

flex-basis formal syntax
FieldValue
Formal syntaxcontent | <'width'>
Initial valueauto
Applies toflexItemsAndInFlowPseudos
InheritedNo
PercentagesreferToFlexContainersInnerMainSize
Computed valueasSpecifiedRelativeToAbsoluteLengths
Animation typelpc
Mediavisual
Specification groupCSS Flexible Box Layout
StatusStandard

Practical examples

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

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

Description

The CSS flex-basis property is a standard property in CSS Flexible Box Layout. Review its formal syntax, computed behavior, and practical declarations.

References

  1. MDN: flex-basis
  2. MDN: CSS Properties Reference

Similar or alternative tools

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