The flex-grow property specifies how much the item will grow compared to others item inside that container. In other words, it is the ability of an item to grow compared to other items present inside the same container.
Note: If the item in the container is not flexible item then the flex-grow property will not affect that item.
flex-grow: number| initial| inherit;
- number: A number that defines how the item will grow compare to other flexible items.
- initial: It sets the value to it’s default value.
- inherit: It inherit the property from it’s parent elements.
Example: Here we are going to see in a single container there are 5 divs, we will apply the flex-grow: On 2nd div and that div will grow compare to other 4 divs. We can apply flex-grow on any document in the same container that div will grow compared to other div’s width, the flex-grow property will help that div to grow in comparison to other items in that container.
Supported Browser: The browser supported by CSS | flex-grow Property are listed below:
- Google Chrome 29.0
- Internet Explorer 11.0
- Mozila Firefox 28.0
- Opera 17.0
- Safari 9.0
- HTML | DOM Style flexGrow Property
- CSS | transition-property Property
- CSS | all Property
- CSS | nav-up property
- CSS | nav-down property
- CSS | top Property
- CSS | nav-right property
- CSS | right Property
- CSS | zoom Property
- CSS | content Property
- CSS | box-shadow Property
- CSS | filter Property
- CSS | bottom Property
- CSS | column-gap Property
- HTML | DOM Map name Property
- CSS | overflow-x Property
- CSS | height Property
- CSS | animation-name Property
- CSS | Display property
- CSS | border-right Property
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.