iShadeed

Archive
Subscribe
November 23, 2026

Flexbox Free Space (+ 40% off The Layout Maestro)

Learn about Flexbox free space, the Layout Maestro Black Friday sale

Hey there,

This week's issue is a free lesson from my course, plus the launch of its Black Friday sale.

Flexbox Free Space

In this email, I'll explain the concept of free space in Flexbox. The examples use the LEGO bricks metaphor, which I use throughout the course for Flexbox and grid.

We need to understand how free space helps flex items expand and shrink.

Three flex items with highlighted free space in the container

The highlighted area is the free space. We can distribute that space as we need by using the flex-grow property.

.brick:nth-child(3) {
  flex-grow: 1;
}

In the demo below, the purple brick (last one) filled the available free space.

Third flex item expanded to fill the free space using flex-grow

When we used flex-grow: 1, the brick expanded from its initial width to fill the free space in its container.

But what does the number 1 mean in that context? This is a fraction number and it means that the brick will take 1 part of the free space.

In our case, we have 3 bricks but since only one of them is expanded, all the free space is added to the expanded brick.

Here is a peek into one of the interactive demos:

Interactive demo showing flex items expanding and shrinking as flex-grow values change

In the flexbox module, I explain positive and negative free space in more detail and why it matters when using flexbox.

This is what every lesson looks like in the course. Interactive, visual, and practical. And that's one of 70 lessons.

Get the course for 40% off

The black friday sale ends on Dec 1st at midnight. Here is what you get:

  • Over 72 written lessons with 150+ interactive examples
  • 7 real-world layout projects
  • Free copy of the Debugging CSS book
  • Teaches you how to think about CSS
  • Lifetime access and future updates

Get the course for $119, no coupon code is needed.

Team and student pricing

Team pricing is also included in the black friday deal.

If you're a student, I offer the course for $100. Just reply with proof of enrollment or send it from your university email, and I'll send you a code.

Otherwise, if you have any questions about the course, reply to this email address. I'm happy to help.

Ahmad

Don't miss what's next. Subscribe to iShadeed:
← Newer ✨ New on the blog: The web is losing its personality Older → CSS diagrams, web icons, and a Black Friday sale on my course

Add a comment:

Posting this comment will subscribe you to this newsletter with the email address you enter.
Share this email:
Share on Twitter Share on LinkedIn Share on Bluesky
GitHub
Bluesky
Twitter
LinkedIn
Powered by Buttondown, the easiest way to start and grow your newsletter.