Web4College

CSS flex-grow property

src

Description

CSS flex-grow determines how much the flex item should expand to fill the remaining space relative to the other flex items.

Negative values are not allowed.

Syntax

flex-grow : +ve integer

Property values

+ve integerDefault

0

The flex items do not expand to fill the remaining space.

flex-grow: 0;
Try it

+ve integer

1

The flex items expand to fill the free remaining space relative to the other items.

flex-grow: 1;
Try it

Applicable to

It applies to flex items.