flex-grow
Defines the ability for a flex item to grow if necessary. It accepts a unitless value that serves as a proportion; it dictates how much of the available space inside the flex container the item should take up.
It is documented as part of the CSS Flexible Box Layout specification.
Syntax
/* Usage Example */
.sidebar { flex-grow: 0; } /* stays fixed width */
.main-content{ flex-grow: 1; } /* grows to fill all remaining space */
/* Global values */
flex-grow: inherit;
flex-grow: initial;
flex-grow: revert;
flex-grow: revert-layer;
flex-grow: unset;
flex-grow Browser support
Widely available
Since
2015 96% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.
29+
20+
9+
12+