.item {
align-self: auto | flex-start | flex-end | center | baseline | stretch;
}
.item {
order: <integer>;
}
defines the ability for a flex item to grow if necessary
dictates what amount of the available space inside the flex container the item should take up
a unitless measure that respresents a proportion or ratio
flex-grow value overrides the width of the flex-item
.item {
flex-grow: <number>; /* default 0 */
}
In the example above, the 2nd flex-item (green box) has its flex-grow set to 2 while the other flex-items have their flex-grow set to 1
defines the ability for a flex item to shrink if necessary.
a unitless measure that respresents a proportion or ratio (similar to flex-grow)
Controls the default size of an element, before it is manipulated by other Flexbox properties
It can be a length (e.g. pixels, percentages, etc) or auto
.item {
flex-basis: <length> | auto; /* default auto */
}
flex-grow
, flex-shrink
and flex-basis
all at the same time
.item {
flex: none | [ <'flex-grow'> <'flex-shrink'>? || <'flex-basis'> ]
}