Skip to main content

Understanding Flex Layout Wrapping Options in Divi 5

Learn how to control the wrapping of Flexbox items in Divi 5 using the Layout Wrapping option.

Updated over a week ago

Divi 5 relies on native CSS flexbox. The Layout Wrapping option in Divi 5 controls whether child elements inside a flex container (like a row, column, or group) stay on a single line or wrap onto multiple lines when there’s not enough space.

Layout Wrapping Location

You can find the Layout Wrapping options in the Design Tab → Layout Layout Wrapping of the following element types:

  • Section

  • Row

  • Column

  • Group module

Layout Wrapping Purpose

Use this option to manage how modules behave inside flex containers when the available width is limited.

Layout Wrapping Usage

It's mainly used to:

  • Wrap: Modules will automatically move to the following line when there isn’t enough horizontal space. Useful for responsive layouts with buttons, images, or blurbs.

  • No Wrap: Forces all child modules to stay in one line, even if they overflow the container. It can be useful for sliders or horizontal scrolling layouts.

How Layout Wrapping Works

In the following example, we are using a Row with 8 Columns.

Layout Wrapping → No Wrap

The columns are displayed side by side.

Divi 5 - Layout Wrapping - No Wrap

Layout Wrapping → Wrap

The Columns are displayed on multiple lines (rows) depending on each column's Class.

Notes: The Row's column structure can be changed using two different methods:

  1. Clicking on the Row's Column structure icon

  2. By editing each of the columns and changing the Column Class in the Design tab → Sizing.

Divi 5 - Layout Wrapping - Wrap

Layout Wrapping → Wrap Reverse

The Columns are displayed on multiple lines (rows) depending on each column's Class, and each line of columns displays the columns in reverse order.

Divi 5 - Layout Wrapping - Wrap Reverse

Use Case: Change the Column Layout on Tablet and Phone

Divi 5 - Changing the columns layout on mobile devices using Layout Wrapping

Let's say that on the Desktop viewport, there is a layout of 8 Columns. However, on the Tablet viewport, the layout should be four columns, and on the Phone viewport, all columns should stack vertically.

  1. Add a Row and choose 8 columns.

  2. Switch to the Tablet viewport.

  3. Click on the Row's column structure icon and choose the 4-column layout.

  4. Go to the Design Tab → Layout → Layout Wrapping.

  5. Enable the Wrap option.

  6. Switch to the Phone viewport.

  7. Click on the Row's column structure icon and choose the 1-column layout option.

Did this answer your question?