Advertise Here

How to create nested grids in Divi 5

by | Dec 15, 2025 | divi, Divi resources, elegant themes, Etcetera, wordpress | 0 comments


Divi 5 provides Flexbox, Nested Rows, and CSS Grid, which, when combined, create an amazing construction that always remains responsive. You can create a protective grid for your main building, then build smaller grids within its columns to organize the contents with effective control.

In this post we’ll show you how to create nested grids using these new options. We’ll recreate the design step by step and show you how to savor each stage of the grill one after the other, making sure the whole thing stays blank, versatile, and simple to replace. Let’s proceed!

Step-by-step training on developing nested grids

Before we get started, let’s take a quick look at the grid structure we’ll be recreating:

This structure uses a main grid to carry two sections of content. Each segment includes its own smaller grid for images, text content and social icons. The protective grid controls the entire construction, while the internal grids keep each group of contents completely aligned. Each section remains balanced on desktop and naturally rearranges on mobile, although each section uses a unique structure development.

We will use a combination of CSS grid, nested rows and Flexbox to build it. If you would like to be informed in more depth about how he paints each of these structural strategies, those guides quilt the whole thing intimately.

1. Set up your primary grid construction

Start with a brand new segment and insert a Row of masonry grate.

add a row of masonry grid

Set the lines Length TO 90% AND Maximum width TO Nobody.

line width

Cross a Design > Format and set Horizontal hole AND Vertical hole TO 20px. This helps keep the row bore constant across all columns.

space between lines

The protective grille acts as the main structural body, so keep its spacing empty and consistent before including anything else inside it.

2. Nested grids for content material sections

Nest a 2-column Flex row in the left column and a 4-column grid row in the right one.

The left column will hang the image and outline. The suitable column can contain social hyperlinks. Set the Horizontal AND Vertical gaps a 20px in each row (possibly we will swap them later).

adjust the distance of nested lines

Repeat similar steps for the rows below. This gives you one main row and 4 nested rows within the construction.

Nested 4 row grid

Loading 10px padding in all guardian line statements to manage design consistency.

fill in the parent row

3. Fill the grids with images, text content and icons

Fill the primary row with two nested columns on the left. In the left column, upload a file Symbol form and add your head coach’s photo. Keep the image full width so it fills the column, then resize it Border Radius (10px) inside the Project card to compare the taste of rounded paper.

In the appropriate column, load a Header module. Customize it, paste your identity and set it to an H2 tag inside the file Project form. Below, upload a file Textual content frame replica form along with quick description paragraph, then upload any other Symbol module.

elements of the second column

Transfer to the four-column grid nested in the appropriate guardian column. Upload a Icon module in each column and you remain only one community in line with the module, so each icon is in its own personal square..

4-column nested row icons on the right

Loading 20px more sensible and back padding for all the icons so they sit in the heart.

Change the Background color (#C8A797), Icon color (#FFFFFF), and columns Border radius TO 10px to compare the drawing.

Below the social icons, enter a Textual content module.

insert the text module

Upload a Button form within the column below. Personalize it with Background color, Border Radius (10px)and padding 20% more sensible and dishonest, 35% sinister and correct.

Repeat the similar development within the decreasing nested rows. This time, 4 images will hang on the nested grid on the left because you no longer want to use social media icons.

nested row of the image

In the column below the images, upload a file Textual content module. For the rest, apply the similar construction.

column add text module

4. Observe the other types at each degree of the grid

With the content material in place, darken the structure. Start by modeling the guardian row. Swap the background color for white to separate the outline from the web page background.

white background

Take note of how we added 10px padding on both sides? This now manages the external spacing for the entire construction, protecting the empty structure without touching the human columns.

Transfer into the 4 column nested grid in the most sensible way correct. This row contains the social icons, so the size of the columns can also be adjusted based on the house to have. Set this line to Grill and alter the Horizontal AND Vertical gaps a 4% AND 8%. (Using % values ​​so that they change relative to the screen size.) These smaller spaces create a tighter space within the crew without affecting the structure of the guardian.

gaps in the grid

Scroll to the second row of 4 columns on the back. This row incorporates images and want to adjust it more freely on smaller screens. Keep this line as Flex with Winding format qualified and practical Vertical hole 4% horizontal/10px. With the wrapper enabled, the grid can naturally shred into more than one row on pills and phones, protecting imperceptibly spaced images without stretching.

image grid

Each row has a corresponding spacing, however each behaves in a different way: the highest row remains mounted and linear, while the ground row adapts to having a home.

5. High quality track components for responsive sizing

The structure is already responsive because each grid controls its construction.

Edit a couple of issues and preview each mode to see if anything else appears to be grayed out. Test the size of text content within nested two-column rows. Moderately reduce the size of the header on your phone and keep the frame text content width set to Full. Avoid resizing padding or margins and let the previously placed blanks do the painting.

With these small changes, the structure flows naturally across all devices, and the nested structure helps keep each individual block of content balanced without rebuilding anything else per cell.

Design complicated layouts with Divi 5’s versatile grid gadget

Nested layouts required fill methods, play rows, and faithful fixes per cell. Divi 5 gives you the versatility of Flexbox, Grid and Nested Rows to build complicated buildings that stay organized on their own. The row of guardians handles the entire structure, while each internal grid follows its own spacing laws, making the design versatile without additional CSS.

If you run out of a structure like this, reserve it on your Divi Bookstore. You’ll be able to reuse it as a template for price sections, group blocks, directional playing cards, and product options without having to rebuild the construction. Nested grids help you design right away and reuse anywhere, without any of the structural complications.

The post How To Create Nested Grids In Divi 5 made the first impression on Elegant Themes Blog.

wordpress Maintenance Plans | wordpress hosting

Read more



Source link

thatguy
Author: thatguy

Places

Services

  • No Categories

Classifieds

  • No Categories

Events

News

Shopping