Style flexGrow Property
Example
Makes the blue DIV element grow to five times the size of the other flexible items:
document.getElementById("myBlueDiv".style.flexGrow = "5";
Try it »
Definition and Usage
The flexGrow property specifies how much a item will grow relative to the other flexible items in the same container.
**Note:** If the element is not a flex item, the flexGrow property has no effect.
Browser support

Firefox, Opera and Chrome support the flexGrow property.
Syntax
Returns the flexGrow property:
object
.style.flexGrow
Sets the flexGrow property:
object
.style.flexGrow="
number
|initial|inherit"
Attribute values
| Value | Description |
|---|---|
| number | A number that specifies how much the item will grow relative to the other flexible items. The default value is 0. |
| initial | Sets this property to its default value. See initial. |
| inherit | Inherits this property from its parent element. See inherit. |
Technical Details
| Default value: | 0 |
|---|---|
| Return Value: | A string that represents the flex-grow property of an element. |
| CSS version | CSS3 |
Related Articles
CSS Reference Manual:flex-grow Property
HTML DOM STYLE Reference Manual:flex Property
HTML DOM STYLE Reference Manual:flexBasis Property
HTML DOM STYLE Reference Manual:flexDirection Property
HTML DOM STYLE Reference Manual:flexFlow Property
HTML DOM STYLE Reference Manual:flexShrink Property
HTML DOM STYLE Reference Manual:flexWrap Property
The Style object