How To Create A Grid Layout In Divi 5 (Step-By-Step)

by | Oct 10, 2025 | Etcetera | 0 comments

Divi’s new Grid Layout System opens up never-ending chances for developing clever layouts. For lots of, although, that is new territory, and wrapping one’s thoughts round a few of these new enter choices may get complicated. That’s why we will be able to stroll thru easy methods to construct a Grid Format the usage of the brand new controls in Divi 5.

Now not too way back, we launched a pack of eight premade Grid Layouts. The use of Grid #4 from that pack as our design inspiration, we will be able to rebuild it, step-by-step.

If that is your first foray into CSS Grid, this instructional is a brilliant position to start out as a result of we received’t use any Offset regulations to make this occur.

How To Create A Grid Format

The objective is to depart this instructional with this as your finish outcome.

Inspiration of the Grid Layout We Will Create In This Tutorial

Step 1. Atmosphere Up The Grid

Step one is to resolve the elemental construction required to create this grid. We want to ask ourselves, “what bins do we want?”. Assuming we’re construction the Grid Format at the Row container and the usage of Columns because the grid pieces, we will resolve that we want 5 columns.

Counting Needed Containers Inside Grid Layout

This informs what we want to upload to the web page. Upload a brand new Phase, scroll right down to the grid choices, and make a selection the 5&occasions;2 Multi-Row grid choice.

Create a Simple Grid Layout From the Layout Picker

This may increasingly get us our 5 columns (plus an additional 5). Delete the additional 5 columns.

Delete Extra Columns for the Layout

Now you’ll have a Row set to a Grid structure and 5 Columns able for construction.

Container and Child Items Ready to Go

Step 2. Configure the Guardian Row Format

CSS Grid has two primary ranges of settings: settings carried out to the mother or father container and settings carried out to the kid pieces. The very first thing we must do is ready up the mother or father container in order that once we observe the kid merchandise Grid settings, they make sense.

We’ll get started through environment the Horizontal and Vertical Gaps. You need to use Design Variables right here and will use clamp() values, however to make this instructional simple, we will be able to set them to 20px apiece.

Set Grid Layout Vertical and Horizontal Gap Values

Subsequent, we want to display extra of Divi’s Grid settings. To do this, scroll right down to the dropdowns for “Column Widths” and “Row Heights.”

See also  Batch Compress Information on Mac (Automate the Procedure with a Bash Script)

Alternate the Column Widths choice from “Equivalent Width Columns” to “Handbook Width Columns.” In a similar fashion, trade “Row Heights” from “Auto Top Rows” to “Handbook Top Rows.” This may increasingly permit us to go into particular width and top values that we wish the grid to suit the kid pieces in.

Atmosphere those choices to “Handbook” supplies us with two further choices each and every, permitting us to set customized values. We will be able to now input those values:

  • Insert “3fr 3fr 2fr” into the Grid Column Template to create two broad columns and one slender column.
  • Insert “3fr 2fr 2fr” into the Grid Row Template to make the primary row taller than the others.

Set fr values on Grid Column Template and Grid Row Template

You’ll be able to see that the description is beginning to take form despite the fact that there’s no content material or styling.

Step 3. Column Grid Settings

At this level, we’ve the overall structure setup, however we now want to set particular person grid choices at the kid component stage. Understand that we’ve 5 columns, each and every with other settings.

Column 1

Column 1 is simple. We will be able to go away the entire Grid sizing default settings alongside in order that Column 1 sits naturally within the first cellular of the grid.

Column 1 - Leave Default Sizing Settings

Column 2

Click on into Column 1 and pass to the Design tab > Sizing. Set Column Begin to 2, Row Span to two, and Row Begin to 1.

Column 2 - Column Start 2, Row Span 2, and Row Start 1

This creates a tall column within the heart that stretches around the two rows.

Column 3

Happily for you, Column 3 may be simple and calls for no adjustments to the default settings. This drops the column into the following to be had area within the height row.

Column 4

Click on into Column 4 and open Design > Sizing. Set Row Span to two.

Column 4 - Row Span 2, All Else Default Settings

This column stretches downward and covers two rows vertically.

Column 5

Click on into Column 5 and open Design > Sizing. Set Column Span to two, Column Begin to 2, Row Span to two, and Row Begin to 2.

Column 5 - Col Span 2, Col Start 2, Row Span 2, Row Start 2

This creates a big block that fills the bottom-right nook of the grid, inflicting some overlap with Column 2.

Step 4. Design Every Column

So far as the grid structure is going, you’re in fact 80% of the best way achieved. If you wish to create your personal design from right here, you’ll be able to construct one thing distinctive whilst nonetheless keeping up the similar grid construction. However let’s proceed and paint with vast strokes. Let’s upload some shade and photographs to those columns. You’ll be able to get entry to the photographs through uploading the layouts referenced originally of this text (recall that we’re the usage of Grid #4).

Add Background Colors and Images to Columns

All Columns on this instance both have a Background Colour or Symbol.

The grid is slightly scrunched. To mend that, we want to upload some modules to the columns. In Column 1, upload a Heading Module and a Button Module. Pass to the Column itself and at the Design Tab, to find the Spacing choices and upload inside Padding the usage of min(40px, 10%) for all 4 aspects.

See also  How To Design Websites In 2024 (Tips & Tricks)

Adding Content and Spacing to Column 1

Column 2 is the same in that it will get Padding of min(40px, 10%) on either side. It additionally will get an Symbol, Heading, and Textual content Module. However then pass to the Column’s Design Settings > Format. To find the “Justify Content material” icon choices and make a selection the third one, “Finish.” This pushes the modules to the lowest of the Column.

Add Content, Spacing, and Justify Content to Column 2

Then, nonetheless on Column 2, pass to the Complicated tab > Place. Upload a z-index of 10 to boost it above the overlapping Column 5.

Add z-index to Column 2

We will be able to additionally introduce border radius to all our columns. On Column 2, upload 20px border radius to all corners, then use Extend Attributes to offer all Columns within the Guardian Row the similar border radius. As soon as this is achieved, set the lowest appropriate border radius to 10vw.

To create the curved hole impact at the decrease appropriate aspect of Column 2, we will be able to upload a field shadow. Use Field Shadow #4, Unfold Duration of 20px (set all different values to 0), Shadow shade of white (#ffffff at 100%), and Field Shadow Place of “Outer Shadow.”

Column 4 provides the Divi 5 “5” symbol inside of it (for reference, it’s set to 80% width.

Column 4 Justify Content End to push image module down

Now, all this is left to do is give the grid a little bit extra respiring room. To do this, pass to the mother or father Row and pass to Design > Sizing. Give the row a width of 100% with a max width of none.

Set Parent Row to 100% Width with max width none

And there we’ve it: a reasonably complicated grid with two columns, a number of of which span additional period (both vertical or horizontal). We make use of a fascinating use of a field shadow to create the semblance of an opening, when in fact, it’s two grid pieces overlapping.

Obtain 8 CSS Grid Sections For Divi 5

Get 8 grid sections at no cost. Those are prestyled sections designed to appear nice out of the field. Import them into your Divi Library and upload them to any web page. The only we used all over this instructional is #4.

.et_bloom .et_bloom_optin_1 .et_bloom_form_content { background-color: #4843d2 !vital; } .et_bloom .et_bloom_optin_1 .et_bloom_form_container .et_bloom_form_header { background-color: #ffffff !vital; } .et_bloom .et_bloom_optin_1 .carrot_edge .et_bloom_form_content:ahead of { border-top-color: #ffffff !vital; } .et_bloom .et_bloom_optin_1 .carrot_edge.et_bloom_form_right .et_bloom_form_content:ahead of, .et_bloom .et_bloom_optin_1 .carrot_edge.et_bloom_form_left .et_bloom_form_content:ahead of { border-top-color: clear !vital; border-left-color: #ffffff !vital; }
@media best display screen and ( max-width: 767px ) {.et_bloom .et_bloom_optin_1 .carrot_edge.et_bloom_form_right .et_bloom_form_content:ahead of { border-top-color: #ffffff !vital; border-left-color: clear !vital; }.et_bloom .et_bloom_optin_1 .carrot_edge.et_bloom_form_left .et_bloom_form_content:after { border-bottom-color: #ffffff !vital; border-left-color: clear !vital; }
}.et_bloom .et_bloom_optin_1 .et_bloom_form_content button { background-color: #f92c8b !vital; } .et_bloom .et_bloom_optin_1 .et_bloom_form_content .et_bloom_fields i { shade: #f92c8b !vital; } .et_bloom .et_bloom_optin_1 .et_bloom_form_content .et_bloom_custom_field_radio i:ahead of { background: #f92c8b !vital; } .et_bloom .et_bloom_optin_1 .et_bloom_border_solid { border-color: #f7f9fb !vital } .et_bloom .et_bloom_optin_1 .et_bloom_form_content button { background-color: #f92c8b !vital; } .et_bloom .et_bloom_optin_1 .et_bloom_form_container h2, .et_bloom .et_bloom_optin_1 .et_bloom_form_container h2 span, .et_bloom .et_bloom_optin_1 .et_bloom_form_container h2 sturdy { font-family: “Open Sans”, Helvetica, Arial, Lucida, sans-serif; }.et_bloom .et_bloom_optin_1 .et_bloom_form_container p, .et_bloom .et_bloom_optin_1 .et_bloom_form_container p span, .et_bloom .et_bloom_optin_1 .et_bloom_form_container p sturdy, .et_bloom .et_bloom_optin_1 .et_bloom_form_container shape enter, .et_bloom .et_bloom_optin_1 .et_bloom_form_container shape button span { font-family: “Open Sans”, Helvetica, Arial, Lucida, sans-serif; } p.et_bloom_popup_input { padding-bottom: 0 !vital;}

You might have effectively subscribed. Please take a look at your e mail deal with to substantiate your subscription and get get entry to to loose weekly Divi structure packs!

Construct Your Grid Layouts In Divi 5 These days

You’ve simply rebuilt a fancy grid from the bottom up. Now that you know how Divi 5’s Grid inputs paintings, you’ll be able to get started experimenting with your personal layouts — swapping spans, adjusting gaps, and stacking content material in new tactics. The extra you observe, the extra you’ll see how versatile and rapid the program may also be in comparison to the previous block type.

Now that you’ve this foundational structure constructed, why now not take it a step additional?

  • Check out other values: What occurs if you happen to trade the Grid Column Template to 1fr 4fr 1fr?
  • Rearrange the spans: Are you able to make Column 4 span horizontally as a substitute of vertically?
  • Discover responsive settings: Use Divi’s responsive controls to totally trade the grid construction on drugs and cellular units for an optimized revel in.
  • Check out the usage of offsets: We didn’t contact on grid offsets, however they’re a to hand method to rearrange your grid to account for uneven layouts.

The structure we constructed lately is only one of numerous chances. Use those new abilities as a springboard on your creativity. We will be able to’t wait to look what you construct with it!

Now not on Divi 5 but? Make the transfer lately and get started construction smarter, sooner layouts.

The submit How To Create A Grid Layout In Divi 5 (Step-By-Step) seemed 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!