flex-grow
Defines how a flex item grows to fill the available extra space in the container.
- Default value: 0 (does not grow).
- If you set a number greater than 0, the item will grow proportionally according to that value.
Example
The child-1 item keeps its size because its flex-grow is 0, and the others grow in proportion to their value. Change the flex-grow of child-3 and compare how much free space it takes against child-2.
ResultLive
html
css