Part 3 Of Mastering Flexbox: Wrap vs No-Wrap Structure Templates

by | Jul 4, 2026 | Etcetera | 0 comments

In Part 2 of our Mastering Flexbox sequence, we confirmed you easy methods to create equal-height playing cards with aligned buttons the usage of Align Pieces > Stretch, Justify Content material > House Between, and Develop To Fill. On this 3rd installment, we’ll center of attention on some of the essential construction choices in Divi 5: Format Wrapping.

Format Wrapping controls whether or not flex pieces keep on one line or transfer onto further strains when there isn’t sufficient room. Opting for between No Wrap, Wrap, and Wrap Opposite impacts what number of rows you wish to have, how your format responds throughout breakpoints, and what sort of guide construction you must set up.

On this submit, we’ll evaluate No Wrap and Wrap construction templates, provide an explanation for when each and every possibility is sensible, and display how supporting controls like Column Elegance, Align Content material, and Show Order let you construct cleaner responsive layouts with out customized CSS.

Let’s dive in.

Figuring out Format Wrapping In Divi 5

In Divi 5, Format Wrapping controls whether or not direct kid parts within a Flex container keep on a unmarried line or wrap onto further strains after they run out of house.

That is essential as a result of wrapping handiest impacts the direct youngsters of the container you’re modifying. For instance, in the event you’re modifying a Row, wrapping impacts its Columns. If you happen to’re modifying a Module Workforce, wrapping impacts the modules or teams within it.

The 3 Format Wrapping Choices

Divi 5 provides you with 3 Format Wrapping alternatives:

No Wrap

No Wrap assists in keeping all direct kid pieces on a unmarried flex line. If there isn’t sufficient room, pieces might shrink, overflow, or create horizontal scrolling relying on their sizing and different format settings.

no wrap in Divi 5

Wrap

Wrap lets in pieces to transport onto further strains after they now not have compatibility within the father or mother container. That is the root for lots of responsive card grids, galleries, function sections, footer layouts, and multi-column content material blocks in Divi 5.

wrap in Divi 5

Wrap Opposite

Wrap Opposite additionally lets in pieces to wrap, nevertheless it reverses the path through which new flex strains are positioned alongside the move axis. It does now not opposite the order of each and every particular person merchandise. As an alternative, it adjustments the place wrapped strains seem.

This will also be helpful when you wish to have wrapped strains to stack in the other way at a particular breakpoint. For exact item-by-item reordering, use Show Order.

wrap reverse in Divi 5

When To Use Each and every Choice

Use No Wrap whilst you deliberately need parts to stick on one line. This works smartly for compact navigation patterns, button teams, emblem rows, or any format the place automated line breaks would disrupt the design.

Use Wrap when you wish to have a format to conform throughout to be had house. That is essentially the most helpful possibility for function playing cards, pricing tables, crew grids, galleries, weblog submit layouts, footer teams, and different multi-line constructions.

Use Wrap Opposite when you wish to have wrapped strains to stack in the other way. It will possibly assist with particular responsive patterns, however for detailed cell ordering, mix it with the Show Order box on the Column or module point.

See also  The Best possible Time to Ship an Electronic mail [Research]

How Wrapping Interacts With Format Course

Format Wrapping adjustments in line with the container’s Format Course.

With Row path, pieces waft horizontally. When Wrap is enabled, overflowing pieces transfer onto a brand new line underneath. With Wrap Opposite, the brand new wrapped line is positioned within the reverse cross-axis path.

With Column path, pieces waft vertically. When Wrap is enabled, overflowing pieces can transfer into a brand new column alongside the move axis.

For Column wrapping to be visual, the father or mother container typically wishes an outlined top. If the container top is ready to Auto, there is also no constrained vertical house that forces pieces to wrap into every other column.

column height in Divi 5

Align Content material turns into helpful when wrapping creates a couple of flex strains and the father or mother container has further cross-axis house to distribute.

align content in Divi 5

As a result of Divi 5’s Flexbox controls are responsive, you’ll alter Format Wrapping, Format Course, gaps, and alignment settings one after the other at other breakpoints.

No Wrap Construction Templates

When Format Wrapping stays set to No Wrap, all direct youngsters keep on a unmarried flex line. That is acquainted habits for lots of Divi customers and works smartly for easy row constructions. Alternatively, when you wish to have a couple of strains, No Wrap typically approach developing and managing a couple of rows.

Instance: Function Playing cards With No Wrap

To create a two-row grid of six function playing cards with No Wrap, you wish to have two separate rows, each and every with 3 columns.

no wrap example 2

Within the instance underneath, the footer format calls for a couple of rows to create separate desktop strains: one row for 5 columns, one row for a full-width house, and every other row for 2 columns.

no wrap example 4

The limitation of No Wrap is structural. It may be predictable, however anything else past a unmarried line regularly calls for further rows, extra duplicated construction, and extra breakpoint control.

Wrap Construction Templates

While you permit Format Wrapping > Wrap, the similar layouts turn out to be extra versatile. As an alternative of manually developing separate rows, you’ll regularly use one father or mother row and make allowance its kid columns to wrap naturally.

For instance, the similar six-card format will also be constructed with one row and 6 columns.

wrap example 2

With Wrap enabled, the playing cards waft into a couple of strains. To create the three-column desktop construction, set each and every column’s Column Elegance to 1/3 within the Design tab underneath the Sizing possibility team.

column class in Divi 5

Within the Wrap model of the footer format, a unmarried row can include a couple of columns with other Column Elegance settings. The primary 5 columns are set to 1/5 width, striking the primary hyperlink teams facet by means of facet on desktop. The 6th column is ready to Fullwidth, and the remainder columns are set to 1/2 width.

wrap example 4

This we could one versatile row take care of a extra complicated desktop construction whilst nonetheless adapting extra cleanly at smaller breakpoints.

Mastering Align Content material For Multi-Line Layouts

Whenever you permit Wrap or Wrap Opposite and your content material flows onto a couple of strains, Align Content material controls how the ones wrapped strains are dispensed alongside the move axis. That is other from Align Pieces, which aligns particular person pieces within each and every line.

Necessary be aware: Align Content material handiest has a visual impact when there are a couple of flex strains and the father or mother container has further cross-axis house. If the row top is ready to Auto and the container handiest grows to suit its content material, Align Content material might seem to do not anything.

height auto in Divi 5 sizing tab

Align Content material vs Align Pieces

Align Pieces aligns particular person flex pieces inside each and every flex line alongside the move axis. It impacts the pieces themselves, now not the crowd of wrapped strains.

Align Content material aligns the wrapped strains as a bunch inside the father or mother container’s to be had cross-axis house.

The most straightforward approach to keep in mind it:

  • Align Pieces: Aligns pieces within each and every flex line.
  • Align Content material: Aligns the flex strains themselves when wrapping creates a couple of strains.
See also  Lensa AI App: A Step-By-Step Guide to Magic Avatars (2023)

Wrap Opposite And Show Order

Whilst Wrap is the choice you’ll use maximum regularly, Wrap Opposite provides you with differently to switch how wrapped strains stack. It may be useful for particular responsive patterns, nevertheless it must now not be handled in its place for Show Order when you wish to have exact item-level keep watch over.

Instance: Featured Pricing Card

When developing multi-column pricing tables, a Featured card can finally end up on the second one wrapped line on smaller monitors, inflicting it to look not up to the encompassing plans.

featured card on bottom of row

Via enabling Wrap Opposite at Pill and Telephone breakpoints, you’ll trade the place the wrapped line seems and produce that Featured card upper within the visible waft.

In additional complicated layouts with a couple of columns, Show Order turns into the simpler instrument. This situation makes use of a three-row alternating image-and-text format. On desktop, the construction works smartly. On cell, the herbal supply order can stack pictures in combination, developing a clumsy waft.

How Show Order Works

You don’t want to set a worth on each and every column. Modify handiest the columns that want to transfer out in their herbal supply order. Columns left clean stay their default order price and deal with their relative place amongst different unchanged pieces.

adjust display order

On this format, handiest 3 columns want to trade at the Telephone breakpoint. Choose the 3rd column, pass to the Content material tab, make bigger the Order possibility team, and set Show Order to 2.

display order 2

Subsequent, set the 5th column to 3 and the 6th column to 4.

The result’s a cleaner alternating trend of pictures and textual content on cell, with only some centered order adjustments.

Professional Tip: Use Wrap Opposite for line-level stacking adjustments and Show Order for item-level reordering. Combining each at particular breakpoints allows you to stay the desktop construction blank whilst bettering the cell waft.

Responsive Very best Practices & Professional Pointers

Divi 5 provides you with responsive keep watch over over wrapping habits. Listed here are a couple of practices that let you recover effects.

Use Divi 5’s Responsive Gear

At all times preview layouts at Desktop, Pill, and Telephone breakpoints. Use the Responsive Editor and Customizable Responsive Breakpoints to regulate Format Wrapping in keeping with tool when wanted.

For instance, you’ll stay No Wrap on Desktop for a horizontal emblem bar, then transfer to Wrap on Pill and Telephone so the emblems can transfer onto further strains.

Mix Settings For Potency

Pair Wrap with Column Elegance settings to create responsive layouts the usage of fewer rows. Mix Wrap and Align Content material when you wish to have higher distribution throughout a couple of strains, and use Show Order handiest at the columns that want to trade place at smaller breakpoints.

Commonplace Problems To Keep away from

Forgetting to set an outlined top or minimal top at the father or mother container is a not unusual reason why Align Content material seems to do not anything. If the row top is ready to Auto, there is also no further cross-axis house for Align Content material to distribute. Upload a minimal top, corresponding to 500px or 60vh, when the format wishes visual multi-line distribution.

Keep away from overusing No Wrap for content-heavy sections. It will possibly power you to control further rows {that a} unmarried wrapping Flex row may take care of extra successfully.

Evaluate Wrap Opposite and Show Order at smaller breakpoints when the herbal stacking order creates sudden visible effects.

Check With Actual Content material

Check your layouts with actual content material of various lengths. Placeholder content material can disguise alignment and wrapping problems that seem with precise reproduction, picture dimensions, button labels, or hyperlink teams. Pay particular consideration to how wrapped strains behave on Pill and Telephone, then alter gaps, Column Elegance values, Format Wrapping, and alignment settings as wanted.

Obtain And Set up The Information

That can assist you perceive Wrap vs No Wrap, we’ve created segment layouts that show No Wrap, Wrap, and Wrap Opposite. Each and every format is classified so you’ll check up on the construction and settings within the Visible Builder.

See also  Rent WordPress Knowledgeable: Stage Up Your Web page: Discovering The Best possible…

Wrap vs No Wrap JSON files

To get admission to them, fill out the shape underneath and obtain the zipped Wrap vs No Wrap report for your pc. Then pass to Divi > Divi Library and make a selection the Import & Export button.

Divi Library import

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

Import Divi Builder Layouts

Subsequent, create a brand new web page or open an current one within the Visible Builder. Click on so as to add a brand new segment to the web page.

add a new Divi section

Choose the Upload From Library tab and make a selection the format you’d love to import.

import a layout into the Visual Builder

In any case, click on Use This Phase to load the segment onto the web page.

use this section

Wrap vs No Wrap: Development Higher Layouts In Divi 5

With a transparent working out of No Wrap, Wrap, and Wrap Opposite, you’ll construct cleaner and extra environment friendly layouts in Divi 5. No Wrap assists in keeping constructions predictable on a unmarried line. Wrap we could one father or mother container take care of multi-line constructions with fewer rows. Wrap Opposite provides you with another choice for controlling how wrapped strains stack at particular breakpoints.

The actual energy comes from combining Format Wrapping with Column Elegance, Align Content material, responsive controls, and Show Order. In combination, those settings let you construct layouts that adapt throughout display screen sizes whilst conserving the construction more uncomplicated to control.

In Phase 4 of Mastering Flexbox in Divi 5, we’ll display you complex alignment tactics that scale back the desire for guide spacing and customized code.

Obtain the instance templates, experiment with the other wrapping choices on your initiatives, and tell us within the feedback which method you’re maximum excited to take a look at.

The submit Part 3 Of Mastering Flexbox: Wrap vs No-Wrap Structure Templates gave the impression first on Elegant Themes Blog.

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!