flex-grow property
Author admin Reading 1 min Views 429 Published by Modified by
Definition and Usage
The CSS flex-grow property specifies the flex grow factor of a flex item.
- Initial0
- Applies toflex items, including in-flow pseudo-elements
- Inheritedno
- Mediavisual
- Computed Valueas specified
- Animatableyes, as a number, except between 0 and other values
- Canonical orderthe unique non-ambiguous order defined by the formal grammar
Syntax
Formal syntax: <number>
flex-grow: 3
flex-grow: inherit
Values
- <number>
- See <number>. Negative values are invalid.
Examples
Compatibility
Desktop browsers
| Feature | Firefox (Gecko) | Chrome | Internet Explorer | Opera | Safari |
| Basic support | 18.0 (18.0) (behind a pref) 20.0 (20.0) | 21.0-webkit | Not supported | 12.10 | Not supported |
Mobile browsers
| Feature | Firefox Mobile (Gecko) | Android | IE Phone | Opera Mobile | Safari Mobile |
| Basic support | NA | NA | Not supported | 12.10 | Not supported |