How To Create Nested Grids In Divi 5

by | Dec 15, 2025 | Etcetera | 0 comments

Divi 5 provides FlexboxNested Rows, and CSS Grid, which, when mixed, construct a shocking construction that remains responsive always. You’ll be able to create a guardian grid to your major construction, then construct smaller grids inside of its columns to arrange content material with actual keep watch over.

On this publish, we’ll display you the way to create nested grids the use of those new options. We’ll recreate the design step-by-step and display you the way to taste every grid stage one after the other, making sure the whole thing remains blank, versatile, and simple to replace. Let’s get to it!

Step-by-Step Educational On Developing Nested Grids

Earlier than we get began, let’s take a snappy take a look at the grid structure we’ll recreate:

final preview

This structure makes use of one major grid to carry two sections of content material. Each and every segment comprises its personal smaller grid for pictures, textual content, and social icons. The guardian grid controls the total construction, whilst the interior grids stay every content material crew completely aligned. Each sections keep balanced on desktop and reflow naturally on cell, although every section makes use of a unique structure development.

We’ll use a mixture of CSS Grid, Nested Rows, and Flexbox to construct this. If you wish to be informed extra about how every of those structure strategies paintings, the ones guides quilt the whole thing intimately.

1. Set Up Your Primary Grid Construction

Get started with a brand new Segment and insert a Masonry Grid Row.

See also  Divi 5 Sneak Peek! Nested Rows

add a masonry grid row

Set the Row’s Width to 90% and Max Width to none.

row's width

Cross to Design > Format and set Horizontal Hole and Vertical Hole to 20px. This assists in keeping the row hole constant throughout columns.

row gap

The guardian grid acts as the principle structure body, so stay its spacing blank and constant prior to including anything else inside of.

2. Nest Grids For Content material Sections

Nest a two-column Flex row within the left column and a 4-column Grid row at the proper.

The left column will hang the picture and outline. The suitable column may have social hyperlinks. Set the Horizontal and Vertical gaps to 20px in each rows (we would possibly trade them later).

adjust nested rows gap

Repeat the similar steps for the rows underneath. This offers you one major row and 4 nested rows within the construction.

4 nested rows grid

Upload 10px Padding in all instructions of the guardian row to handle design consistency.

padding in parent row

3. Fill Grids With Pictures, Textual content, And Icons

Fill the primary nested two-column row at the left. Within the left column, upload an Symbol module and add your major trainer photograph. Stay the picture full-width so it fills the column, then give it a small Border Radius (10px) within the Design tab to compare the rounded card taste.

In the appropriate column, upload a Heading module. Customise it, paste your identify, and set it to an H2 tag within the Design tab. Beneath that, upload a Textual content module for the frame replica along with your quick description paragraph, then upload any other Symbol module.

second column elements

Transfer to the nested four-column grid in the appropriate guardian column. Upload an Icon module into every column and stay just one community in line with module, so every icon sits in its personal sq..

right 4 column nested row icons

Upload 20px most sensible and backside padding to all icons in order that they sit down within the heart.

Alter the Background Colour (#C8A797), Icon colour (#FFFFFF), and column’s Border Radius to 10px to compare the design.

See also  How To Create A Unique Header Menu With Divi 5’s Flexbox Layout System

Beneath the social icons, insert a Textual content module.

insert text module

Upload a Button module within the column underneath it. Customise it with Background Colour, Border Radius (10px), and Padding 20% most sensible and backside, 35% left and proper.

Repeat the similar development within the decrease nested rows. This time, the left nested grid will hang 4 pictures because you don’t want social media icons once more.

image nested row

Within the column underneath the pictures, upload a Textual content module. For the remainder, apply the similar construction.

column add text module

4. Observe Other Kinds To Each and every Grid Degree

With the content material in position, blank up the structure. Get started by way of styling the guardian row. Exchange the background colour to white to split the structure from the web page background.

background white

Take note how we added 10px Padding on either side? That now handles the outer spacing for all the construction, protecting the structure blank with out touching person columns.

Transfer into the nested 4-column grid on the most sensible proper. This row holds the social icons, so the column sizes can also be adjusted in response to the to be had house. Set this row to Grid and alter the Horizontal and Vertical gaps to 4% and 8%. (The use of % values in order that they alter relative to display sizes.) Those smaller gaps create tighter spacing within the crew with out affecting the guardian structure.

grid gaps

Scroll to the second one 4-column row on the backside. This row incorporates pictures and wishes to regulate extra freely on smaller displays. Stay this row as Flex with Format Wrapping enabled and practice 4% Horizontal / 10px Vertical Hole. With wrapping enabled, the grid can destroy naturally into more than one rows on pills and telephones, protecting pictures flippantly spaced with out stretching.

image grid

Each rows have matching spacing, however every behaves another way: the highest row remains mounted and linear, whilst the ground row adapts to to be had house.

5. High quality-Track Components For Responsive Sizes

The structure is already responsive as a result of every grid controls its personal construction.

See also  The Final Information to WordPress DNS Configuration for Freshmen

Tweak a couple of issues and preview on every mode to look if anything else appears to be like off. Test the textual content sizes within the nested two-column rows. Scale back the heading dimension moderately on telephone and stay frame textual content width set to complete. Steer clear of resizing padding or margins and let the gaps you place previous do the paintings.

With those small tweaks, the structure flows naturally throughout all gadgets, and the nested construction assists in keeping each and every content material block balanced with out rebuilding anything else for cell.

Design Complicated Layouts With Divi 5’s Versatile Grid Gadget

Nested layouts used to require padding methods, reproduction rows, and loyal fixes for cell. Divi 5 offers you the versatility of Flexbox, Grid, and Nested Rows to construct complicated buildings that keep arranged on their very own. The guardian row handles the total structure, whilst every interior grid follows its personal spacing laws, making the design versatile with out further CSS.

If you end a structure like this, reserve it on your Divi Library. You’ll be able to reuse it as a template for pricing sections, group blocks, direction playing cards, and product options without having to rebuild the construction. Nested grids assist you to design as soon as and reuse all over, with not one of the structure complications.

The publish How To Create Nested Grids In Divi 5 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!