The flex-grow CSS property specifies how much a flex item will enlarge with respect to the other items in the flex container to fill an expanded container.
- Initial value
- Applies to
- flex items
- Computed value
- as specified
- CSS Object Model Property
- The flex grow factor, which describes the proportion by which the flex item will grow relative to the other flex items in the container. Negative numbers are invalid.
See flex examples for the use of this property in an example.
The best practice is to use (instead of this property) the flex shorthand property, as it correctly resets any unspecified flex components to accomodate common uses.
This property is animatable only for values of 1 or greater.
- CSS Flexible Box Layout Model
- Candidate Recommendation