CSS flex-basis property
Browser support · legacy reference
ChromeFully supports
SafariFully supports
FirefoxFully supports
Internet ExplorerFully supports
EdgeFully supports
OperaFully supports
Description
CSS flex-basis property behaves the same way as width of a box except it only specifies the width of content-box of flex item.
Syntax
flex-basis : auto | +ve integer
Property values
autoDefault
-
The width of content-box is resolved to fit the content completely.
- Try it
flex-basis: auto; +ve integer
-
It specifies the width of the content-box of the flex item. Remember that this value does not include border-box and padding area.
- Try it
flex-basis: 100px;
Applicable to
It applies to flex items.