Flex-grow
The CSS flex-grow property specifies a nonnegative factor determining a flex item’s proportional share of available free space.
Web Design Playground, Second Edition
The CSS flex-grow property specifies how much a flex item may expand relative to the other flex items when extra space is available.
- How it is used
- Allocates extra space to flex items in thumbnail lists, page columns, and layouts that keep a footer at the bottom.
- How deep it goes
- Explains the default, declaration syntax, and proportional division of extra space, then applies them in layouts.
- Examples
- Uses a thumbnail list, article-and-sidebar columns, and a photo gallery with a bottom-aligned footer.
- What you can do after
- Apply it via CSS to distribute spare space among items or make main content fill space above a footer.
Read how Web Design Playground, Second Edition explains flex-grow →
Web Design Playground
A flexbox sizing behavior that allows a flex item to take up available free space.
- How it is used
- Allocates spare space among flex items to fill a container, size columns, or keep a footer at the bottom.
- How deep it goes
- Explains the zero default and proportional free-space shares with arithmetic, then applies them to layouts without detailing browser sizing internals.
- Examples
- Uses 1:2:1 free-space shares, an article with a sidebar, and a full-height page with a bottom footer.
- What you can do after
- Build it from scratch with CSS flexbox to share free space between items and position a footer in a full-height layout.
Math for Web Design
A flex grow factor is the numeric value that determines an item’s proportional share of positive free space in a Flexbox container.
- How it is used
- Distributes positive free space among flex items, including to make one pricing card more prominent.
- How deep it goes
- Works through base sizes, proportional shares, final widths, and the fractional-factor exception.
- Examples
- Calculates three widths in a 600px row and applies unequal grow factors to pricing cards.
- What you can do after
- Operate/configure it by choosing grow factors and checking how the flex shorthand affects them.
CSS in Depth, Second Edition
The CSS flex-grow property specifies a nonnegative factor that determines how a flex item receives remaining space in its flex container.
- How it is used
- Allocates leftover space among flex items to create proportional, fluid columns and fill constrained layouts.
- How deep it goes
- Explains basis-dependent remainder calculation, weighted allocation, shorthand equivalence, and vertical-axis constraints.
- Examples
- Demonstrates weighted columns, nested vertical tiles, and flexible portfolio images inside grid items.
- What you can do after
- Apply it via CSS to distribute remaining width or constrained height among flex items.
Also covered in
What to know first
- flex containerA flex container is an element whose children are laid out as flex items according to the CSS Flexible Box Layout model.
- flexboxFlexbox is a CSS one-dimensional layout model for arranging, sizing, aligning, and distributing items along a row or column.
- main axisThe main axis is the primary direction in which a flex container arranges and distributes its flex items.
- widthWidth is a measure of extent along a specified dimension, such as spatial size or the number of units or features in a model.
Related concepts
- flexpart of · The CSS flex property is a shorthand that sets a flex item’s flex-grow, flex-shrink, and flex-basis values.
- mainconfigures · The HTML main element identifies the dominant content of a document or application view, excluding shared navigation and peripheral content.
- flex itemuses · A flex item is a child of a flex container that participates in its flexible layout.
Questions about flex-grow
What is flex-grow?
The CSS flex-grow property specifies a nonnegative factor determining a flex item’s proportional share of available free space.
Which Manning books explain flex-grow?
Web Design Playground, Second Edition, Web Design Playground, Math for Web Design and CSS in Depth, Second Edition.
What should I know before learning flex-grow?
Manning books that teach flex-grow usually introduce flex container, flexbox, main axis and width first.
What is flex-grow a kind of?
Flex-grow is a kind of flex factor. A flex factor is either a flex-grow or flex-shrink value that controls an item's participation in Flexbox space distribution.
What is flex-grow part of?
Flex-grow is part of flex. The CSS flex property is a shorthand that sets a flex item’s flex-grow, flex-shrink, and flex-basis values.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.



