How To Create Nested Grids In Divi 5

by | Dec 15, 2025 | Etcetera | 0 comments

Divi 5 offers Flexbox, Nested Rows, and CSS Grid, which, when combined, assemble a surprising building that is still responsive at all times. You’ll create a guardian grid on your number one building, then assemble smaller grids inside its columns to arrange content material subject matter with exact keep watch over.

In this post, we’ll show you learn how to create nested grids using the ones new choices. We’ll recreate the design step by step and show you learn how to style every grid degree one after the other, ensuring the entire thing stays clean, flexible, and easy to switch. Let’s get to it!

Step-by-Step Tutorial On Rising Nested Grids

Previous than we get started, let’s take a handy guide a rough check out the grid layout we’ll recreate:

final preview

This layout makes use of 1 number one grid to hold two sections of content material subject matter. Each section accommodates its non-public smaller grid for photos, text, and social icons. The guardian grid controls the entire building, while the internal grids keep every content material subject matter crew utterly aligned. Each and every sections stay balanced on desktop and reflow naturally on cellular, even though every section uses a definite layout construction.

We’ll use a mix of CSS Grid, Nested Rows, and Flexbox to build this. If you want to be informed additional about how every of the ones layout methods artwork, those guides duvet the entire thing in detail.

1. Set Up Your Number one Grid Building

Get began with a brand spanking new Section and insert a Masonry Grid Row.

See also  11 Highest Textual content to Speech Equipment in 2023 (Loose and Paid)

add a masonry grid row

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

row's width

Go to Design > Layout and set Horizontal Hollow and Vertical Hollow to 20px. This assists in keeping the row hollow consistent all the way through columns.

row gap

The guardian grid acts as the primary layout frame, so keep its spacing clean and loyal forward of together with anything inside.

2. Nest Grids For Content material subject matter Sections

Nest a two-column Flex row inside the left column and a 4-column Grid row at the correct.

The left column will grab the image and description. The proper column could have social links. Set the Horizontal and Vertical gaps to 20px in every rows (we’d most likely alternate them later).

adjust nested rows gap

Repeat the identical steps for the rows underneath. This gives you one number one row and four nested rows inside the building.

4 nested rows grid

Add 10px Padding in all directions of the guardian row to care for design consistency.

padding in parent row

3. Fill Grids With Pictures, Text, And Icons

Fill the principle nested two-column row on the left. Throughout the left column, add an Image module and upload your number one instructor {photograph}. Keep the image full-width so it fills the column, then give it a small Border Radius (10px) inside the Design tab to match the rounded card style.

In the precise column, add a Heading module. Customize it, paste your determine, and set it to an H2 tag inside the Design tab. Beneath that, add a Text module for the body copy in conjunction with your temporary description paragraph, then add every other Image module.

second column elements

Switch to the nested four-column grid in the precise guardian column. Add an Icon module into every column and keep only one group in step with module, so every icon sits in its non-public sq..

right 4 column nested row icons

Add 20px top and bottom padding to all icons so that they take a seat down inside the center.

See also  Make a choice the Proper Area Provider Supplier

Modify the Background Color (#C8A797), Icon color (#FFFFFF), and column’s Border Radius to 10px to match the design.

Underneath the social icons, insert a Text module.

insert text module

Add a Button module inside the column underneath it. Customize it with Background Color, Border Radius (10px), and Padding 20% top and bottom, 35% left and correct.

Repeat the identical construction inside the lower nested rows. This time, the left nested grid will grab 4 photos since you don’t need social media icons another time.

image nested row

Throughout the column underneath the pictures, add a Text module. For the rest, apply the identical building.

column add text module

4. Practice Different Types To Each Grid Level

With the content material subject matter in place, clean up the layout. Get began by the use of styling the guardian row. Trade the background color to white to separate the layout from the internet web page background.

background white

Be mindful how we added 10px Padding on each side? That now handles the outer spacing for the entire building, preserving the layout clean without touching specific individual columns.

Switch into the nested 4-column grid at the top correct. This row holds the social icons, so the column sizes may also be adjusted in keeping with the available space. Set this row to Grid and change the Horizontal and Vertical gaps to 4% and 8%. (The usage of % values so that they modify relative to show sizes.) The ones smaller gaps create tighter spacing inside the crew without affecting the guardian layout.

grid gaps

Scroll to the second 4-column row at the bottom. This row accommodates photos and desires to control additional freely on smaller screens. Keep this row as Flex with Layout Wrapping enabled and practice 4% Horizontal / 10px Vertical Hollow. With wrapping enabled, the grid can destroy naturally into a few rows on medication and phones, preserving photos frivolously spaced without stretching.

image grid

Each and every rows have matching spacing, then again every behaves differently: the best row stays mounted and linear, while the bottom row adapts to available space.

See also  Erasing Your iPhone With out Passcode with EaseUS MobiUnlock

5. Superb-Observe Elements For Responsive Sizes

The layout is already responsive on account of every grid controls its non-public building.

Tweak a few problems and preview on every mode to see if anything seems off. Take a look at the text sizes inside the nested two-column rows. Reduce the heading size fairly on phone and keep body text width set to finish. Avoid resizing padding or margins and let the gaps you put earlier do the artwork.

With the ones small tweaks, the layout flows naturally all the way through all devices, and the nested building keeps every content material subject matter block balanced without rebuilding anything for cellular.

Design Complicated Layouts With Divi 5’s Flexible Grid Device

Nested layouts used to require padding strategies, copy rows, and dependable fixes for cellular. Divi 5 gives you the flexibility of Flexbox, Grid, and Nested Rows to build complicated buildings that stay organized on their own. The guardian row handles the entire layout, while every inner grid follows its non-public spacing rules, making the design flexible without further CSS.

Whilst you finish a layout like this, put it aside to your Divi Library. You’ll reuse it as a template for pricing sections, team of workers blocks, path taking part in playing cards, and product choices without having to rebuild the development. Nested grids will allow you to design once and reuse all over the place, with now not one of the vital layout headaches.

The post How To Create Nested Grids In Divi 5 appeared first on Chic Subject matters 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!