Skip to main content

Understanding Flex Wrapping Alignment Options in Divi 5

Learn how to control the wrapping alignment of flexbox items in Divi 5 using the Wrapping Alignment option.

Updated over 2 months ago

Divi 5 relies on native CSS flexbox. The Wrapping Alignment option in Divi 5 controls how multiple wrapped elements are aligned along the vertical axis when the Layout Direction is set to Column or Column Reverse, and along the horizontal axis when the Layout Direction is set to Row or Row Reverse, inside a flex container with Layout Wrapping enabled.

Wrapping Alignment Location

You can find the Wrapping Alignment options in the Design Tab → Layout Layout Wrapping by enabling either the Wrap or Wrap Reverse options of the following element types:

  • Section

  • Row

  • Column

  • Group module

Wrapping Alignment Purpose

When a container (such as a row or group) has wrapping enabled, items that don’t fit on one line wrap to the following line, the Wrapping Alignment option lets you choose how those multiple rows (or columns) of elements are positioned vertically (in a row layout) or horizontally (in a column layout).

Wrapping Alignment Usage

Use Wrapping Alignment when:

  • You enable wrapping because you have too many modules in a row or column.

  • You want control over how the wrapped lines are stacked in the container.

Wrapping Alignment → Stretch

Fills the container’s available space. Wrapped rows of items stretch to fill all available space.

Divi 5 - Wrapping Alignment Stretch option

Wrapping Alignment → Start

Lines up wrapped items at the start of the container (top or left, depending on direction).

Divi 5 - Wrapping Alignment Start option

Wrapping Alignment → Center

Centers all the wrapped lines inside the container.

Divi 5 - Wrapping Alignment Center option

Wrapping Alignment → End

Aligns wrapped items at the end of the container (bottom or right).

Divi 5 - Wrapping Alignment End option

Wrapping Alignment → Space Between

The first and last rows are pushed to the edges, and the remaining rows are spaced evenly in between.

Divi 5 - Wrapping Alignment Space Between option

Wrapping Alignment → Space Around

Equal space is added around each wrapped line. So there’s space before the first and after the last.

Divi 5 - Wrapping Alignment Space Around option

Wrapping Alignment → Space Evenly

Equal space is distributed between and around all rows of wrapped items.

Divi 5 - Wrapping Alignment Space Evenly option

Did this answer your question?