In Phase 6 of our Mastering Flexbox direction, we shared key pointers for development responsive layouts in Divi 5 with cleaner construction, smarter breakpoint selections, and real-content checking out.
Now, in Phase 7, we’ll focal point on smaller structure patterns that seem on nearly each and every site: button teams, navigation menus, breadcrumbs, footer hyperlinks, and tag rows. Those parts glance easy, however they may be able to be difficult to make responsive as a result of they incessantly wish to keep horizontal on Desktop, wrap cleanly on Pill, and stack or enlarge on Telephone with out feeling cramped.
With Divi 5’s Flexbox Format Device, you’ll construct versatile button teams, menu rows, and hyperlink sections at once within the Visible Builder. Through combining Format Route, Hole, Format Wrapping, Column Magnificence, Module Teams, and responsive sizing, you’ll create interaction-heavy rows that adapt throughout display sizes with out duplicating constructions or writing customized CSS for commonplace structure patterns.
Let’s dive in.
Why Button, Menu, And Hyperlink Rows Want Particular Consideration
Buttons, menus, and hyperlink rows are one of the maximum necessary interactive parts on a site. They information customers to key pages, movements, classes, and conversion issues, in order that they wish to stay transparent and simple to make use of throughout display sizes.
The problem is that those rows incessantly have competing structure wishes. On Desktop, they normally glance easiest as compact horizontal teams. On Pill, they will wish to wrap into more than one traces. On Telephone, they will wish to stack vertically, turn out to be complete width, or transfer right into a separate cell menu.
Commonplace issues come with cramped spacing, misaligned icons and labels, buttons which can be too small to faucet conveniently, menu rows that wreck awkwardly on Pill, and hyperlink teams that lose their construction after they wrap.
Divi 5’s Flexbox equipment lend a hand remedy those problems on the container point. As an alternative of including handbook margins to each and every merchandise or duplicating separate cell variations, you’ll use parent-level controls like Horizontal Hole, Vertical Hole, Format Route, and Format Wrapping to regulate how the crowd behaves.
Core Flexbox Ways For Those Components
Growing versatile button, menu, and hyperlink rows in Divi 5 turns into more straightforward as soon as which Flexbox controls do the heavy lifting.
Format Route controls the principle float of the container. Use Row when pieces must take a seat side-by-side and Column after they must stack vertically. You’ll exchange this consistent with breakpoint, which turns out to be useful for button teams that keep horizontal on Desktop however stack on Telephone.
Justify Content material and Align Pieces regulate distribution and alignment. Justify Content material works alongside the principle axis, whilst Align Pieces works alongside the move axis. In combination, they let you middle icon-and-text pairs, distribute navigation teams, and stay buttons aligned within their mother or father container.

Horizontal Hole and Vertical Hole supply constant spacing between direct kid pieces with out including margins to each and every button, hyperlink, or module. That is particularly helpful when a row wraps for the reason that spacing between pieces and features remains centralized in a single position.

Format Wrapping shall we pieces transfer onto further traces after they now not have compatibility in a single row. Mix it with Column Magnificence or Construction Templates when you need extra regulate over what number of pieces seem consistent with line at every breakpoint.
After all, Module Teams allow you to create smaller structure contexts within a bigger row or column. Wrap comparable buttons, hyperlinks, icons, or menu pieces in a Module Team so you’ll follow impartial Flexbox settings with out affecting the remainder of the structure.

In combination, those controls let you construct reusable, responsive interplay rows with much less handbook spacing and less breakpoint-specific fixes.
Actual-Global Examples
Let’s take a look at 5 examples that display methods to create versatile button, menu, and hyperlink rows the use of Divi 5’s Flexbox options. Each and every one comprises the Desktop structure, the responsive problem, and the settings used.
Instance 1: Versatile Button Team

Purpose: Create a row of buttons that remains smartly spaced on Desktop, then stacks and expands on Telephone for more straightforward tapping.
The Problem: Buttons can turn out to be cramped when display width is proscribed, particularly when labels are longer or more than one CTAs take a seat side-by-side.
The Resolution: Position the buttons within a Module Team. Use Format Route > Row on Desktop and Pill, then transfer the Team to Format Route > Column on Telephone. Use Horizontal Hole and Vertical Hole for spacing, then modify the button sizing on Telephone when you need the buttons to span lots of the viewport.
Settings Used: Position a Module Team with 3 Button modules within a single-column row. On the Desktop and Pill breakpoints, set the Team’s Format Route to Row and follow a 10px Horizontal Hole and 10px Vertical Hole.

At the Telephone breakpoint, transfer the Team’s Format Route to Column.

Then, widen every button on Telephone the use of the Sizing choices within the Button module’s Design tab. Set the Button Width and Button Max Width to a price equivalent to 90vw, then set the Button module alignment to Heart.
Instance 2: Breadcrumb Hyperlink Row

Purpose: Create a horizontal breadcrumb row that is still readable on Desktop whilst stacking smartly on Telephone.
The Problem On Cell: Breadcrumb hyperlinks can turn out to be cramped or wrap awkwardly, making the row more difficult to scan and faucet on smaller displays.
The Resolution: Position the breadcrumb hyperlinks within a Module Team. Use Format Route > Row on Desktop and Pill for a horizontal float, then transfer to Format Route > Column on Telephone. Regulate the vertical spacing so the breadcrumb stays compact however readable.
Settings Used: Set the Module Team’s Format Route to Row at the Desktop and Pill breakpoints. Upload a 10px Horizontal Hole and 10px Vertical Hole, then set Justify Content material and Align Pieces to Heart.

At the Telephone breakpoint, set the Module Team’s Format Route to Column, modify the Vertical Hole to 5px, and stay the remainder alignment settings unchanged.


Purpose: Create a multi-column footer with hyperlink teams, equivalent to Product, Corporate, Sources, and Prison, that remains arranged on Desktop and stacks cleanly on Telephone.
The Problem On Cell: Footer hyperlinks can turn out to be cramped, asymmetric, or exhausting to scan when the structure narrows.
The Resolution: Use a row with Format Wrapping enabled and modify gaps at each the row and Module Team ranges. On the row point, gaps regulate spacing between the hyperlink columns. On the Module Team point, gaps regulate spacing between the person hyperlinks within every staff.
Settings Used: On the Row point, set the Horizontal Hole to 25%, the Vertical Hole to 30px, and allow Format Wrapping.

On the Row’s Telephone breakpoint, set the Vertical Hole to 20px.

At the Desktop breakpoint, set every Module Team’s Vertical Hole to 10px.

For every Module Team on the Telephone breakpoint, stay the spacing settings unchanged and set Align Pieces to Heart so the hyperlink teams align smartly within the stacked structure.


Purpose: Construct a header with an emblem, navigation hyperlinks, and a button staff that remains horizontal on Desktop however adapts cleanly on Pill and Telephone.
The Problem On Cell: Navigation hyperlinks and buttons can turn out to be cramped or misaligned, and the button staff might want other sizing habits than the principle menu.
The Resolution: Use a mother or father Column for the total header row and Module Teams for comparable pieces. The brand and menu can take a seat in a single staff, whilst the CTA buttons can take a seat in any other. This provides every a part of the header its personal Flexbox settings and responsive sizing.
Settings Used: On the Column point, set the Format Route to Row, set the Horizontal Hole and Vertical Hole to 10px, set Justify Content material to House Between, and set Align Pieces to Heart.

For the Module Team, set Justify Content material to House Between and Align Pieces to Heart.

At the Telephone breakpoint, set the Column Vertical Hole to 15px and depart the remainder settings unchanged except your design wishes a special cell construction.

Along with the Flexbox settings, modify the Sizing for the Module Team throughout breakpoints. Set the Team width to 75% on Desktop, 65% on Pill, and 100% on Telephone. This is helping the brand and menu staff use the to be had width extra successfully on smaller displays.

After all, set every Button‘s width to 80vw at the Telephone breakpoint so the buttons can span lots of the viewport.

Instance 5: Tag Cloud

Purpose: Create a versatile tag cloud or class row that flows horizontally on better displays and wraps naturally on smaller displays.
The Problem On Cell: Tag clouds can turn out to be cramped, asymmetric, or exhausting to faucet when tag lengths range.
The Resolution: Use a unmarried Column or Module Team with Format Route > Row and Format Wrapping > Wrap. Observe Horizontal Hole and Vertical Hole on the mother or father point so tags have constant spacing as they wrap. For the reason that structure is designed to wrap naturally, it will possibly incessantly use the similar Flexbox settings throughout breakpoints.
Settings Used: The Column makes use of Format Route > Row, a 10px Horizontal Hole, and a 10px Vertical Hole. Justify Content material and Align Pieces are each set to Heart, and Format Wrapping is enabled. Those settings stay constant throughout breakpoints.

Step-Through-Step Construct
Let’s stroll thru development a customized menu that features a brand, navigation hyperlinks, a CTA, and a cell menu. Through the tip, you’ll know the way to mix Flexbox, Module Teams, Hyperlink loops, Canvases, and Interactions for a responsive navigation workflow.

Set Up The Major Row Construction
Get started by means of including a single-column row to a brand new web page within the Visible Builder. If wanted, make a choice Flex because the Format Taste. Within the Row’s Design tab, enlarge the Format possibility staff. Set the Horizontal Hole to 0px, set the Vertical Hole to 5px, and allow Format Wrapping > Wrap.

Open the Column settings and move to the Design tab. Within the Format possibility staff, set the Format Route to Row so pieces float from left to proper. Set Justify Content material to House Between, set Align Pieces to Heart, and allow Format Wrapping > Wrap.

Now upload any other Column to the Row. Within the Row’s Content material tab, enlarge the Components possibility staff and click on the + Upload Part button so as to add the Column.
Transfer to the Design tab for the brand new Column. Set Format Route to Row, Justify Content material to House Between, Align Pieces to Heart, and Format Wrapping to Wrap.

Earlier than shifting on, open the primary Column and assign a Background Colour, 15px Border Radius, and 10px Padding on all 4 aspects.
Upload Modules To The Row
Within the first Column, upload a Module Team to carry an Icon module and a Textual content module. Taste the modules as wanted. Then, within the Team’s Format settings, set the Horizontal Hole to 10px, set Format Route to Row, and set Align Pieces to Heart.

Upload a Social Media Apply module out of doors of the Team and elegance it as wanted.

In the second one Column, upload an Symbol module and two Module Teams. The Symbol module will function the brand. The Module Teams will grasp the navigation hyperlinks, hidden hamburger icon, and CTA.

Within the first Team’s Format settings, set Horizontal Hole to 15px, Format Route to Row, Justify Content material to Finish, and Align Pieces to Heart.

Upload a Hyperlink module to the Team and elegance the hyperlink as wanted, together with hover and energetic states.
Within the Hyperlink module’s Content material tab, enlarge the Loop possibility staff and allow Loop Part. Choose Menu because the Question Sort and make a selection your primary menu.

To assign the menu merchandise names, enlarge the Textual content possibility staff, click on the Insert Dynamic Content material icon, and make a selection Loop Menu Textual content.
In the second one Module Team, upload an Icon module and a Button module, then genre them as wanted. Within the Team’s Design tab, set the Format Route to Row.

Disguise the hamburger Icon module on Desktop so it best seems on the Pill and Telephone breakpoints.

Then disguise the Module Team with the desktop navigation hyperlinks at the Pill and Telephone breakpoints.

Create The Cell Menu
On this step, we’ll create a separate Canvas to carry the cell menu. Click on the Canvas dropdown menu, make a choice Upload Canvas, give it a reputation equivalent to Cell Menu, set a Z-Index of 99999, and click on Upload Canvas.

When the Canvas so much, upload a single-column row with an Icon module and a Module Team. Open the Phase settings and move to the Design tab. Make bigger the Sizing possibility staff and set the Width and Max Width to 80%. Make a selection Heart for the Phase Alignment.

Then open the Column settings and set the Vertical Hole to 10px.

Subsequent, open the Module Team settings and set the Horizontal Hole and Vertical Hole to 15px.

Assign a Shut icon to the Icon module, set an Icon Dimension, and enlarge the Sizing possibility staff to set the Alignment to Finish.

Upload a Hyperlink module, genre it, and allow looping in your WordPress menu.
Create The Interactions
Earlier than remaining the Canvas, create an Interplay that closes the cell menu on click on. Choose the Icon module and move to the Complicated tab. Make bigger the Interactions possibility staff and click on + Upload Interplay.

Make a selection Click on because the Cause Tournament, give the Interplay a reputation, make a selection Disguise Part because the Impact Motion, and make a selection Phase (Cell Menu) because the Goal Module.
Tip: To make Interactions more straightforward to regulate, label your sections obviously so they’re simple to spot within the Layers Panel.

Earlier than heading again to the Major Canvas, enlarge the Visibility possibility staff and disable the cell menu phase on all breakpoints. Save the Canvas.

After all, open the Place possibility staff, set Place to Absolute, set Offset Foundation to Most sensible Heart, and follow a -50px Vertical Offset so the cell menu seems close to the principle menu when opened. You could wish to modify this price relying to your header peak and spacing.

Transfer again to the Major Canvas, make a choice the hamburger Icon module, move to the Complicated tab, enlarge the Interactions possibility staff, and create a brand new Interplay that opens the cell menu on click on.

Save the Major Canvas, open the web page in a brand new tab, and check the capability.
Absolute best Practices And Pointers
Listed here are a couple of sensible pointers that will help you construct higher button, menu, and hyperlink rows with Divi 5.
1. Make a selection Wrap Vs. Column Route Properly
Use Format Wrapping when you need pieces to float naturally onto new traces as house turns into restricted. This works smartly for tag clouds, hyperlink rows, and button teams that have the benefit of computerized wrapping.
Transfer to Column route when you want a strict vertical stack, equivalent to a cell menu or full-width CTA staff. Keep away from forcing Column route too early, particularly on Pill, as a result of it will possibly make layouts longer than important.
2. Prioritize Essential CTAs With Show Order
On cell, you’ll use Show Order to transport a number one button, key hyperlink, or necessary menu merchandise previous within the visible float. A unfavourable price, equivalent to -1, can pull an merchandise forward of different parts at a particular breakpoint.
Use this selectively. A blank supply order must nonetheless do lots of the paintings, with Show Order used best when the cell hierarchy wishes a focused adjustment.
3. Use The Loop Builder For Menu Hyperlinks
When development customized menus with the Hyperlink module, you don’t want to manually create a separate Hyperlink module for each and every web page to your website. Upload a unmarried Hyperlink module, open its settings, move to the Loop possibility staff, and toggle Loop Part on. Set the Question Sort to Menu and make a selection your WordPress menu.
The usage of the Loop Builder will give you extra regulate over hyperlink styling and is helping your menu replicate updates when the hooked up WordPress menu adjustments.
4. Use Flexbox Controls For Fast Alignment
For an ordinary brand, menu, and button structure, set the mother or father container to Format Route > Row, set Align Pieces to Heart, and use Justify Content material > House Between. It will place the brand, navigation, and CTA in a balanced horizontal row with out depending on handbook margins.
Then use Module Teams when a part of the header wishes its personal alignment habits, equivalent to a menu staff, social icon staff, or CTA button staff.
5. Construct Extra Complicated Menus With Interactions And Canvases
You’ll use Divi 5’s Interactions and more recent menu options to create extra complex setups, equivalent to cell overlays, dropdown-style menus, or mega menus. Whilst Hyperlink modules paintings smartly for easy navigation rows, the more recent Hyperlink and Dropdown modules, Canvases, Loop Builder, and Interactions make it imaginable to construct extra customized navigation patterns within the Visible Builder.
Obtain The Layouts
That will help you practice alongside, we’ve created a zipper document containing the examples from this submit. You’ll in finding an ALL document containing all sections, a folder with person sections, and a folder containing the total step by step instance.

To make use of the ALL document or person sections, import them into the Divi Library. Pass to Divi > Divi Library and click on the Import & Export button.

Transfer to the Import tab, make a selection an person JSON document or the ALL document out of your laptop, and make a choice Import Divi Builder Layouts.

To make use of an imported phase, open a web page within the Visible Builder. Click on the blue + icon so as to add a piece to the web page.

Transfer to Upload From Library and make a selection the phase you need so as to add to the web page.

For the step by step instance, allow the Export & Import Web page Bar Icon. Click on the Workspace icon within the Builder Bar, find Export & Import underneath Web page Bar Icons, and click on the Export & Import icon within the peak bar of the Visible Builder.

Transfer to the Import tab, find the folder containing the Menu – Step Through Step.json document, and make a choice Import Format. This JSON document will have to be uploaded this method to import the Cell Menu Canvas related to it.

Should you plan to make use of the instance as your website’s navigation, you’ll upload it as a International Header within the Theme Builder after uploading the structure.

Grasp Versatile Button, Menu, And Hyperlink Rows With Flexbox
With Divi 5 and its Flexbox Format Device, you’ll construct button teams, hyperlink rows, customized menus, and tag clouds that adapt throughout display sizes whilst staying more straightforward to handle.
The important thing is selecting the correct construction for every development. Use Row route for horizontal layouts, Column route for strict vertical stacks, Hole for centralized spacing, Format Wrapping for herbal line breaks, and Module Teams when a suite of parts wishes its personal structure habits.
In Phase 8, we’ll dive deeper into one of the vital greatest workflow shifts in Divi 5: the use of Gaps as a substitute of handbook margin for cleaner spacing methods.
Obtain Divi 5, import the instance layouts integrated with this submit, and get started experimenting with versatile button, menu, and hyperlink rows. Drop a remark beneath and tell us which instance you discovered most precious, or what navigation problem you’re nonetheless operating thru.
The submit Phase 7 Of Mastering Flexbox: Construction Versatile Button, Menu, And Hyperlink Rows gave the impression first on Chic Issues Weblog.
WordPress Web Design

