Menu
The flex-basis
property designates the initial length of a flexible item.
This property only has an effect on flexible items.
.flex-item {
flex-basis: 150px;
}
number
Designates the initial length of a flexible item or items, as defined by a length unit (px, em, rem, etc.) or percentage.
auto
Default value. The length of the flexible item is according to its specified length or its content if no length is set.
initial
Sets the property to its default value.
inherit
Inherits this property’s value from its parent item.
Have a code example of flex-basis
? Submit a codepen.io demo and we'll showcase it here ↴