AI Academy · Webflow

Review the three Flexbox layouts

Already completed the exercises? Here are the settings for the three layouts and animations to revisit the steps. If you have not started yet, return to the lesson and load the file into your AI assistant.

← Back to the lesson and AI tutor

This sheet summarizes the exercises completed with the tutor. These values belong to those examples: adapt them when designing a different layout.

Equal-width columns

When to use it

For items of equal importance, such as three benefits or services, even when their texts have different lengths.

Wide screen

Column 1Column 2Column 3

Narrow screen

Column 1Column 2Column 3
Simplified result diagram; sizes are illustrative.

The structure

One container with three Boxes inside it. All three Boxes share the same class.

On the container

  • Display: Flex on Desktop, keeping a single row.
  • From Tablet: enable Wrap down so each column can move onto its own row.

On the inner Boxes

  • Basis: 100% on the shared class. This is a starting size, not a required final width.
  • Min W: 0, allowing the columns to shrink even with different content.

When the screen gets narrower

On Desktop, the columns shrink to share one row. From Tablet down, Wrap lets each column occupy a full row.

Remember

The same Basis and equivalent settings produce equal widths in this exercise. If Wrap is already enabled on Desktop, Basis 100% will stack the columns there too.

Revisit the steps

Cards on multiple rows

When to use it

For a collection of activities or projects whose number can change. Cards move to a new row when they no longer fit on the previous one.

Wide screen

Card 1Card 2Card 3Card 4Card 5

Narrow screen

Card 1Card 2Card 3Card 4Card 5
Simplified result diagram; sizes are illustrative.

The structure

One container with five card Boxes. The cards share the same class.

On the container

  • Display: Flex and Wrap down, set on Desktop as the base rule.
  • Gap: 16px to separate the cards and rows.

On the inner Boxes

  • Basis: 13rem as the starting size of each card.
  • Grow: 1 to share free space among cards on the same row.
  • Min W: 0 to allow shrinking when necessary.

When the screen gets narrower

As the width decreases, fewer cards fit on each row. When only one fits per row, Grow lets it use the full available width.

Remember

Each row distributes its own space: the last two cards can be wider than the three above. Basis is not a minimum width; Shrink stays at its default and does not need resetting.

Revisit the steps

Text with a side index

When to use it

For an article with an index or a guide with secondary information that needs to remain readable.

Wide screen

Narrow screen

Main textIndex
Simplified result diagram; sizes are illustrative.

The structure

One container with two distinct Boxes: the main text first, followed by the index. Each Box has its own class.

On the container

  • Display: Flex and Wrap down, set on Desktop.

On the inner Boxes

  • Main text: Basis 70%, Grow 1 and Min W 0.
  • Index: Basis 30%, Grow 1 and Min W 13rem. The minimum stops the index becoming too narrow.

When the screen gets narrower

When the two Boxes no longer fit together, the index moves below the text. Grow lets both use the full width of their own row.

Remember

The percentages give starting sizes. The index’s minimum width, content and padding can change the actual proportions. Without Wrap, the index’s minimum can leave too little room for the text.

Revisit the steps

Understanding the three layouts from the video

The video starts with three recurring needs: giving several items equal importance, managing a changing collection, and placing content beside secondary information. Here is the reasoning behind those layouts, with the clarifications used in the exercises.

Watch the original video on YouTube (in English) ↗

Original video chapters
  1. 00:00 · Intro
  2. 01:12 · Even Columns
  3. 05:28 · Grid-ish Layout
  4. 09:15 · Content and Sidebar
  5. 12:00 · Outro

The container arranges its direct children

Every example starts with a container set to Display: Flex and a few Boxes inside it. The container arranges its direct children. Text inside each Box remains that Box’s content: it does not all become part of the same Flex row.

The settings therefore live in two places. On the container, choose whether to form new rows and how much space to leave between items. On the children, define a starting size, participation in free space and any size limits.

Columns with equal importance

Think of service benefits, highlighted statistics or pricing plans. When items have equal roles, you may want equal-width columns even if one contains more text. Flex alone puts them in a row without guaranteeing equal widths.

In the example, Basis 100% gives each column the same starting size relative to the container’s inner width. On a single row, the items can shrink to share the space. With equivalent settings and Min W 0, the sample produces equal widths even when you add a column.

A width of 25% can be sensible for a specific four-column design. The video explores a different goal: describing behavior that adapts when the number changes. Basis gives a starting size; it does not replace every other layout condition.

Keeping columns side by side on narrow screens can make text hard to read. The exercise therefore enables Wrap from Tablet. With Basis 100%, each column can occupy its own row. Enabling Wrap on Desktop would produce that arrangement in the wide view too.

A changing collection of cards

For activities, projects or collection content, you may not know how many items there will be. The video’s layout looks grid-like, but Flexbox distributes each row’s space independently.

Basis 13rem gives the cards a starting size. With Wrap on the container, a card that does not fit on the row moves to the next one. The number that fits also depends on Gap, the distance between items.

Grow 1 lets the cards share the free space on their own row. If the last row contains two cards rather than three, those two can become wider. Choose that effect deliberately: do not expect columns to stay aligned across separate rows.

Basis is not a guaranteed minimum. Without Wrap, cards can shrink to stay together. Even with Wrap, an item that does not fit by itself may need to shrink. Min W and content also affect the result.

Main content with a side index

An article with an index, or a guide with secondary information, gives its two Boxes different roles. The example starts with Basis 70% and 30%, without a gap between them, leaving more space for the main text in the wide view.

As the screen narrows, 30% may become too small for the index. Min W 13rem protects its width, but that limit alone does not solve the layout: it may leave too little space for the main content.

Wrap lets the two Boxes move onto separate rows when they no longer fit together. Grow 1 on both then allows each to fill its own row. The percentages remain starting sizes: minimums, padding and content can change the final proportions.

Choose the behavior and check it

The three examples use a few properties for different goals. Basis gives a starting size; Grow distributes free space; Min W sets a minimum; Wrap permits new rows. The result depends on their combination and the breakpoint where you set the rules.

When reusing a pattern, test wide, narrow and intermediate widths. Change the amount of text or the number of items too, then compare what happens with your intended result. The video’s values are a starting point for reasoning, rather than a recipe for every kind of content.

The animations show a reconstruction of the Designer, not your project. They start paused: play them, advance without motion or read the text equivalent. If one stops with a question, return to the chat: the tutor provides the next part after your prediction.