Phase 3 Of Mastering Flexbox: Wrap vs No-Wrap Construction Templates

by | Jul 4, 2026 | Etcetera | 0 comments

In Phase 2 of our Mastering Flexbox series, we showed you simple how to create equal-height taking part in playing cards with aligned buttons using Align Items > Stretch, Justify Content material subject matter > Space Between, and Expand To Fill. In this third installment, we’ll focus on one of the vital building picks in Divi 5: Construction Wrapping.

Construction Wrapping controls whether or not or no longer flex items stay on one line or switch onto additional traces when there isn’t enough room. Choosing between No Wrap, Wrap, and Wrap Reverse affects what collection of rows you want, how your construction responds all through breakpoints, and what sort of information building you want to arrange.

In this post, we’ll evaluation No Wrap and Wrap building templates, provide an explanation for when each selection is sensible, and show how supporting controls like Column Class, Align Content material subject matter, and Display Order will let you assemble cleaner responsive layouts without custom designed CSS.

Let’s dive in.

Understanding Construction Wrapping In Divi 5

In Divi 5, Construction Wrapping controls whether or not or no longer direct child portions inside a Flex container stay on a single line or wrap onto additional traces once they run out of space.

This is vital on account of wrapping most efficient affects the direct youngsters of the container you’re improving. For example, if you’re improving a Row, wrapping affects its Columns. Must you’re improving a Module Workforce, wrapping affects the modules or groups inside it.

The three Construction Wrapping Possible choices

Divi 5 gives you 3 Construction Wrapping conceivable alternatives:

No Wrap

No Wrap keeps all direct child items on a single flex line. If there isn’t enough room, items would most likely shrink, overflow, or create horizontal scrolling depending on their sizing and other construction settings.

no wrap in Divi 5

Wrap

Wrap we could in items to move onto additional traces once they no longer fit throughout the guardian container. That’s the foundation for a lot of responsive card grids, galleries, feature sections, footer layouts, and multi-column content material subject matter blocks in Divi 5.

wrap in Divi 5

Wrap Reverse

Wrap Reverse moreover we could in items to wrap, but it surely undoubtedly reverses the course in which new flex traces are located along the move axis. It does not reverse the order of every individual products. Instead, it changes where wrapped traces appear.

This can be useful when you want wrapped traces to stack within the mistaken method at a selected breakpoint. For precise item-by-item reordering, use Display Order.

wrap reverse in Divi 5

When To Use Each Risk

Use No Wrap whilst you intentionally want portions to stay on one line. This works smartly for compact navigation patterns, button groups, brand rows, or any construction where automatic line breaks would disrupt the design.

Use Wrap when you want a construction to conform all through available space. This is one of the useful selection for feature taking part in playing cards, pricing tables, group of workers grids, galleries, blog post layouts, footer groups, and other multi-line buildings.

Use Wrap Reverse when you want wrapped traces to stack within the mistaken method. It’ll neatly lend a hand with explicit responsive patterns, on the other hand for detailed mobile ordering, combine it with the Display Order field at the Column or module level.

See also  WordPress multisite vs a couple of WordPress installations: How to make a choice

How Wrapping Interacts With Construction Trail

Construction Wrapping changes in response to the container’s Construction Trail.

With Row course, items float horizontally. When Wrap is enabled, overflowing items switch onto a brand spanking new line beneath. With Wrap Reverse, the new wrapped line is located throughout the opposite cross-axis course.

With Column course, items float vertically. When Wrap is enabled, overflowing items can switch into a brand spanking new column along the move axis.

For Column wrapping to be visible, the mother or dad container usually needs a defined peak. If the container peak is set to Auto, there may be no constrained vertical space that forces items to wrap into each different column.

column height in Divi 5

Align Content material subject matter becomes useful when wrapping creates a few flex traces and the mother or dad container has further cross-axis space to distribute.

align content in Divi 5

On account of Divi 5’s Flexbox controls are responsive, you’ll keep an eye on Construction Wrapping, Construction Trail, gaps, and alignment settings one at a time at different breakpoints.

No Wrap Building Templates

When Construction Wrapping remains set to No Wrap, all direct youngsters stay on a single flex line. This is familiar habits for a lot of Divi consumers and works smartly for simple row buildings. Then again, when you want a few traces, No Wrap usually means creating and managing a few rows.

Example: Function Taking part in playing cards With No Wrap

To create a two-row grid of six feature taking part in playing cards with No Wrap, you want two separate rows, each with 3 columns.

no wrap example 2

Throughout the example beneath, the footer construction requires a few rows to create separate desktop traces: one row for five columns, one row for a full-width space, and each different row for two columns.

no wrap example 4

The limitation of No Wrap is structural. It can be predictable, on the other hand the remaining previous a single line often calls for extra rows, additional duplicated building, and further breakpoint keep an eye on.

Wrap Building Templates

When you permit Construction Wrapping > Wrap, the equivalent layouts transform additional flexible. Instead of manually creating separate rows, you’ll often use one guardian row and allow its child columns to wrap naturally.

For example, the equivalent six-card construction can be built with one row and six columns.

wrap example 2

With Wrap enabled, the taking part in playing cards float into a few traces. To create the three-column desktop building, set each column’s Column Class to 1/3 throughout the Design tab beneath the Sizing selection body of workers.

column class in Divi 5

Throughout the Wrap fashion of the footer construction, a single row can come with a few columns with different Column Class settings. The principle 5 columns are set to 1/5 width, placing the main link groups aspect via aspect on desktop. The sixth column is set to Fullwidth, and the remaining columns are set to 1/2 width.

wrap example 4

This lets one flexible row handle a additional sophisticated desktop building while nevertheless adapting additional cleanly at smaller breakpoints.

Mastering Align Content material subject matter For Multi-Line Layouts

While you permit Wrap or Wrap Reverse and your content material subject matter flows onto a few traces, Align Content material subject matter controls how those wrapped traces are distributed along the move axis. This is different from Align Items, which aligns individual items inside each line.

Necessary apply: Align Content material subject matter most efficient has a visible have an effect on when there are a few flex traces and the mother or dad container has further cross-axis space. If the row peak is set to Auto and the container most efficient grows to fit its content material subject matter, Align Content material subject matter would most likely appear to don’t anything else.

height auto in Divi 5 sizing tab

Align Content material subject matter vs Align Items

Align Items aligns individual flex items inside each flex line along the move axis. It affects the items themselves, not the group of wrapped traces.

Align Content material subject matter aligns the wrapped traces as a bunch all through the mother or dad container’s available cross-axis space.

The simplest means to bear in mind it:

  • Align Items: Aligns items inside each flex line.
  • Align Content material subject matter: Aligns the flex traces themselves when wrapping creates a few traces.
See also  Highest WordPress Web hosting Suppliers For Small Companies: Aloha, Marketers! 🚀…

Wrap Reverse And Display Order

While Wrap is the selection you’ll use most often, Wrap Reverse gives you differently to switch how wrapped traces stack. It can be helpful for explicit responsive patterns, but it surely undoubtedly will have to not be treated as an alternative to Display Order when you want precise item-level control.

Example: Featured Pricing Card

When creating multi-column pricing tables, a Featured card can after all finally end up on the second wrapped line on smaller displays, causing it to appear less than the surrounding plans.

featured card on bottom of row

By way of enabling Wrap Reverse at Tablet and Phone breakpoints, you’ll change where the wrapped line turns out and bring that Featured card higher throughout the visual float.

In more sophisticated layouts with a few columns, Display Order becomes the better device. This example uses a three-row alternating image-and-text construction. On desktop, the development works smartly. On mobile, the natural provide order can stack images together, creating an awkward float.

How Display Order Works

You don’t need to set a worth on every column. Regulate most efficient the columns that need to switch out of their natural provide order. Columns left blank keep their default order price and handle their relative position among other unchanged items.

adjust display order

In this construction, most efficient 3 columns need to change on the Phone breakpoint. Make a choice the third column, move to the Content material subject matter tab, building up the Order selection body of workers, and set Display Order to 2.

display order 2

Next, set the fifth column to 3 and the sixth column to 4.

The outcome’s a cleaner alternating development of images and text on mobile, with only a few targeted order changes.

Skilled Tip: Use Wrap Reverse for line-level stacking changes and Display Order for item-level reordering. Combining each and every at explicit breakpoints permits you to keep the desktop building clean while improving the mobile float.

Responsive Highest Practices & Skilled Tips

Divi 5 gives you responsive control over wrapping habits. Listed below are a few practices that will let you recuperate results.

Use Divi 5’s Responsive Equipment

Always preview layouts at Desktop, Tablet, and Phone breakpoints. Use the Responsive Editor and Customizable Responsive Breakpoints to keep an eye on Construction Wrapping consistent with tool when sought after.

For example, you’ll keep No Wrap on Desktop for a horizontal brand bar, then switch to Wrap on Tablet and Phone so the logos can switch onto additional traces.

Combine Settings For Efficiency

Pair Wrap with Column Class settings to create responsive layouts using fewer rows. Combine Wrap and Align Content material subject matter when you want upper distribution all through a few traces, and use Display Order most efficient on the columns that need to change position at smaller breakpoints.

Not unusual Issues To Keep away from

Forgetting to set a defined peak or minimum peak on the guardian container is a common explanation why Align Content material subject matter turns out to don’t anything else. If the row peak is set to Auto, there may be no further cross-axis space for Align Content material subject matter to distribute. Add a minimum peak, comparable to 500px or 60vh, when the construction needs visible multi-line distribution.

Keep away from overusing No Wrap for content-heavy sections. It’ll neatly power you to keep an eye on further rows {{that a}} single wrapping Flex row might handle additional effectively.

Review Wrap Reverse and Display Order at smaller breakpoints when the natural stacking order creates sudden visual results.

Take a look at With Exact Content material subject matter

Take a look at your layouts with exact content material subject matter of quite a lot of lengths. Placeholder content material subject matter can disguise alignment and wrapping issues that appear with precise copy, image dimensions, button labels, or link groups. Pay explicit attention to how wrapped traces behave on Tablet and Phone, then keep an eye on gaps, Column Class values, Construction Wrapping, and alignment settings as sought after.

Download And Arrange The Knowledge

That will help you understand Wrap vs No Wrap, we’ve created phase layouts that showcase No Wrap, Wrap, and Wrap Reverse. Each construction is classed so that you’ll check up on the development and settings throughout the Visual Builder.

Wrap vs No Wrap JSON files

To get right of entry to them, fill out the form beneath and acquire the zipped Wrap vs No Wrap report on your pc. Then move to Divi > Divi Library and make a choice the Import & Export button.

See also  WPMUDEV – Louisiana Web sites: How WPMUDEV Is Shaping The Virtual…

Divi Library import

Make a selection the Import tab, make a choice the phase you’d like to import, or make a selection the Wrap VS No Wrap – ALL.json report to import all layouts. While you’ve made a ramification, click on on Import Divi Builder Layouts.

Import Divi Builder Layouts

Next, create a brand spanking new internet web page or open an provide one throughout the Visual Builder. Click on on as a way to upload a brand spanking new phase to the internet web page.

add a new Divi section

Make a choice the Add From Library tab and make a selection the construction you’d like to import.

import a layout into the Visual Builder

In the end, click on on Use This Section to load the phase onto the internet web page.

use this section

Wrap vs No Wrap: Construction Upper Layouts In Divi 5

With a clear understanding of No Wrap, Wrap, and Wrap Reverse, you’ll assemble cleaner and further setting pleasant layouts in Divi 5. No Wrap keeps buildings predictable on a single line. Wrap lets one guardian container handle multi-line buildings with fewer rows. Wrap Reverse gives you another choice for controlling how wrapped traces stack at explicit breakpoints.

The true power comes from combining Construction Wrapping with Column Class, Align Content material subject matter, responsive controls, and Display Order. Together, the ones settings will let you assemble layouts that adapt all through computer screen sizes while protecting the development easier to keep an eye on.

In Section 4 of Mastering Flexbox in Divi 5, we’ll show you sophisticated alignment ways in which scale back the will for information spacing and custom designed code.

Download the example templates, experiment with the opposite wrapping alternatives on your projects, and let us know throughout the comments which means you’re most excited to take a look at.

The post Phase 3 Of Mastering Flexbox: Wrap vs No-Wrap Construction Templates seemed first on Sublime Topics Weblog.

WordPress Web Design

[ continue ]

WordPress Maintenance Plans | WordPress Hosting

read more

0 Comments

Submit a Comment

DON'T LET YOUR WEBSITE GET DESTROYED BY HACKERS!

Get your FREE copy of our Cyber Security for WordPress® whitepaper.

You'll also get exclusive access to discounts that are only found at the bottom of our WP CyberSec whitepaper.

You have Successfully Subscribed!