liveBook · Manning

Flex-grow

The CSS flex-grow property specifies a nonnegative factor determining a flex item’s proportional share of available free space.

How 4 Manning books explain it

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.

Read how Web Design Playground explains flex-grow →

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.

Read how Math for Web Design explains flex-grow →

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.

Read how CSS in Depth, Second Edition explains flex-grow →

Also covered in

What to know first

Related concepts

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.