Everything You Need To Know About Divi 5’s CSS Grid System

by | Oct 7, 2025 | Etcetera | 0 comments

Divi 5 lately built-in a CSS Grid machine that provides a complete vary of grid features within the Visible Builder. This new characteristic in Divi 5 permits any person to construct advanced, responsive layouts with out writing code. The CSS Grid machine sticks out for its flexibility and keep an eye on in growing designs that adapt seamlessly throughout all units.

On this put up, we’ll dive into what CSS Grid is, how Divi 5 integrates it into the Visible Builder, and the way you’ll be able to get started the use of it to construct shocking internet sites.

Let’s get began!

What Is CSS Grid?

CSS Grid is a local, two-dimensional structure machine that adjustments internet design by way of enabling customers to create two-dimensional layouts, organizing content material in rows and columns with precision and versatility. Not like older float-based layouts or single-axis Flexbox, Grid is two-dimensional and constructed into all trendy browsers, making it a competent, future-proof device for crafting responsive and sophisticated designs.

Subscribe To Our Youtube Channel

Call to mind CSS Grid like a spreadsheet: it supplies a structured, but flexible framework the place you’ll be able to position components precisely the place you wish to have them.

What Is Divi 5’s CSS Grid Gadget?

Divi 5‘s CSS Grid machine integrates the facility of customized CSS Grid into the Visible Builder, converting how customers create refined layouts. Customers can simply construct advanced layouts by way of embedding CSS Grid into the Visible Builder. This integration builds on Divi’s legacy of user-friendly design, making it more uncomplicated to create dynamic, trendy internet sites that carry out superbly throughout all display sizes.

The Core Parts Of Divi 5’s CSS Grid

There are 3 major elements of the CSS Grid machine in Divi 5, together with:

Grid Packing containers

In Divi 5, sections, rows, columns, and teams can function grid boxes, forming the root of the grid construction. Those boxes outline the structure’s framework, permitting you to arrange rows and columns without difficulty. Divi 5 makes the use of CSS Grid simple.

Divi 5 CSS Grid

Grid Pieces

Kid modules, similar to Textual content, Photographs, Buttons, or another Divi module, act as grid pieces. Those components can also be positioned and styled inside the Grid, providing flexibility to organize content material creatively.

Divi 5 CSS Grid

Customizable Houses

Customers can regulate columns, rows, gaps, alignment, and responsive settings within the Visible Builder. Those controls help you outline the Grid’s construction, spacing, and behaviour throughout units with easy clicks and sliders.

A Easy Visible Interface

Divi 5’s Visible Builder interprets advanced CSS Grid capability into an intuitive, drag-and-drop interface. Customers can configure grid settings the use of drop-down menus and visible previews, and Divi robotically generates blank, optimized CSS Grid code at the back of the scenes. This guarantees that newcomers can create skilled layouts whilst builders retain the versatility to dive deeper with customized changes.

Divi 5 CSS Grid

Key Options

Divi 5 gives prebuilt grid templates with predefined column and row configurations, enabling customers to jumpstart their designs with skilled layouts.

Divi 5 CSS Grid

Auto-placement simplifies the design procedure by way of robotically arranging grid pieces according to your settings, whilst particular placement permits actual keep an eye on over the place each and every module sits inside the Grid.

Divi 5 supplies device-specific settings, making sure grids adapt to cellular, pill, and desktop displays with minimum effort.

See also  Download a FREE Header & Footer for Divi’s Home Remodeling Layout Pack

Divi 5 CSS Grid

How To Use Divi 5’s CSS Grid

On this phase, we’ll stroll you via how Divi 5’s CSS Grid works and easy methods to use it. Get started by way of including a brand new phase to a web page in Divi 5. When the Insert Segment conversation field seems, you’ll understand that the row constructions have modified. Now, you’ll be able to choose from Flex boxes and Grid boxes.

Select Grid when you wish to have two-axis keep an eye on (rows + columns). Use Flex for single-axis lists and easy stacks.

When opting for a Grid construction, you’ll be able to upload modules (kid components).

Divi 5 CSS Grid

Grid Settings

As soon as the design is in position, you’ll be able to use Divi’s CSS Grid settings to keep an eye on how the structure purposes. That will help you know the way all of it works, let’s stroll throughout the other settings related to CSS Grid.

Format Taste

This permits you to select the kind of structure you wish to have on your phase. When you choose a Grid construction, the Grid is robotically decided on by way of default. Different choices come with Flex and Block.

Divi 5 CSS Grid

Horizontal Hole

The use of the Horizontal Hole box, you’ll be able to regulate the spacing between columns. It controls the quantity of house between columns (within the row).

Divi 5 CSS Grid

Vertical Hole

Very similar to the Horizontal Hole box, this controls the quantity of house between rows within the grid.

Divi 5 CSS Grid

Column Widths

Those settings help you keep an eye on how columns behave. Equivalent Width Columns make all columns the similar width. You’ll regulate the choice of columns and cave in empty columns the use of this surroundings.

Divi 5 CSS Grid

Equivalent Minimal Width Columns guarantees all columns have the similar minimal width however can develop to fill to be had house.

Divi 5 CSS Grid

Equivalent Mounted Width Columns locks all columns to a selected width you’ll be able to set, they usually received’t exchange without reference to content material.

Divi 5 CSS Grid

When you choose Auto Width Columns, each and every column’s width adjusts robotically according to its content material. If one column has a large symbol and every other has quick textual content, they’ll dimension themselves accordingly.

Divi 5 CSS Grid

After all, Handbook Width Columns permits you to set customized widths for each and every column in my opinion, supplying you with complete keep an eye on. You’ll make one column broad and others slender, growing an asymmetrical glance.

Divi 5 CSS Grid

Grid Auto Columns

This works with any variety below Column Widths. It defines how further columns (created robotically when content material overflows) are sized. With auto, they fit the content material’s herbal width. You’ll exchange it to a set price the use of any of Divi 5’s CSS devices.

Divi 5 CSS Grid

Row Heights

The Row Heights settings help you keep an eye on how tall each and every row on your Grid is, supplying you with the versatility to check your content material or design imaginative and prescient. Identical to columns outline the width, rows resolve the peak. When opting for Auto Peak Rows, rows robotically regulate their top according to the content material within them. This surroundings is best for layouts the place content material varies, like a weblog with blended put up lengths or a gallery with other symbol sizes.

Then again, Equivalent Peak Rows makes all rows the similar top, without reference to their content material. With Minimal Peak Rows, you’ll set a minimal top for each and every row, however they are able to develop taller if wanted. Mounted Peak Rows locks each and every row to a selected top, they usually received’t exchange, regardless of the content material. After all, Handbook Peak Rows permits you to set customized heights for each and every row in my opinion, supplying you with complete keep an eye on over person rows on your structure.

Divi 5 CSS Grid

Quantity Of Rows

The Choice of Rows settings help you outline what number of rows your Grid can have. This surroundings works inside the Grid container and provides you with keep an eye on over the Grid’s vertical construction.

Divi 5 CSS Grid

Grid Auto Rows

The Grid Auto Rows settings resolve how the peak of additional rows is treated when robotically created as you upload extra content material past the predefined choice of rows. Those settings let new rows regulate their top according to the tallest content material inside them, making it superb for dynamic layouts. You’ll customise it with a set top the use of any of Divi 5’s CSS devices.

See also  Divi Product Highlight: Divi Essential

Divi 5 CSS Grid

Grid Alignment Settings

The settings below Grid Route, Grid Density, Justify Content material, Align Pieces, Align Content material, and Justify Pieces can help you keep an eye on how your grid pieces are organized and spaced inside the Grid container.

  • Grid Route: This units the order by which pieces fill the Grid, both Row or Column.
  • Grid Density: Controls how auto-placed pieces fill empty house. Dense shall we later auto-placed pieces backfill gaps in the event that they have compatibility; <em>Sparse</em> preserves herbal order.
  • Justify Content material: Controls how the grid tracks are situated alongside the inline axis (most often horizontal) within the container. Get started aligns the entire grid to the beginning, Heart facilities it, Finish aligns it to the top. House-between, House-around, and House-evenly distribute tracks with gaps between/round/frivolously.
  • Align Pieces: This units the vertical alignment of person pieces inside the Grid. Get started aligns pieces to the highest, Heart to the center, and Finish to the ground. Stretch
    makes pieces fill the whole top in their row.
  • Align Content material: Controls how the grid tracks are situated alongside the container’s block axis (most often vertical).
  • Justify Pieces: You’ll align grid pieces inside their cells horizontally. Stretch occupies the whole width, Heart or Finish shifts them to the center or finish, and Get started aligns all of them to the left.

Divi 5 CSS Grid

Grid Offset Regulations

Those regulations help you customise the position and dimension of particular Grid pieces inside your structure, supplying you with actual keep an eye on over how they span throughout rows and columns. Within the symbol beneath, we’ve created an offset rule known as First Merchandise Spans 2 Columns. This implies the primary merchandise stretches throughout two columns. Right here’s the breakdown of each and every surroundings so that you’ll seize the idea that:

  • Admin Label: Means that you can upload a reputation for simple identity
  • Goal Offset: Defines the rule of thumb sort, the use of nth-patterns similar to 5n+1 (each and every fifth merchandise beginning at 1).
  • Offset Rule: Permits for keep an eye on over the position and dimension of particular grid pieces. On this instance, it’s set to Column Span, which units the choice of columns an merchandise must stretch throughout.
  • Offset Worth: This specifies the precise quantity of house or span an merchandise must duvet or shift. On this instance, the worth is about to two, telling Divi to permit this primary grid merchandise to occupy 2 columns of the Grid.

Divi 5 CSS Grid

You’ll upload as many offset regulations as essential by way of clicking the + Upload Grid Offset Rule button.

Divi 5 CSS Grid

Responsive Choices

Divi 5 gives Customizable Responsive Breakpoints to taste your CSS Grid layouts for smaller displays. Whilst in a responsive breakpoint, similar to a pill, you’ll be able to exchange the Column Span to keep an eye on what number of columns a design part must occupy. As an example, within the Pill breakpoint, you might need to set the span of a column to a few in order that it occupies 3 of the 4 columns for that breakpoint.

Divi 5 CSS Grid

Then again, that column would possibly glance dangerous for the Telephone breakpoint. The use of Divi’s responsive settings, you’ll be able to regulate the Column Span for each and every breakpoint, making sure your structure seems flawless on each and every display dimension.

CSS Grid Examples

Listed below are 3 sensible examples of CSS Grids constructed with Divi 5 to encourage your designs. Each and every example represents each and every form of Grid construction, together with Masonry, Multi-Row, and Sidebar.

Masonry

On this instance, we stock a meals co-op in a 4-column structure. The structure makes use of Equivalent Width Columns with horizontal and vertical spacing (Hole) set to 35px. The choice of columns is about to 4 with Auto Peak Rows. We’ve additionally set Align Pieces and Justify Pieces to Stretch in order that the structure is symmetrical, giving the structure a blank glance.

See also  Get a Unfastened AI Generator Structure Pack for Divi

Divi 5 CSS Grid

Multi-Row

This structure has a 10px horizontal and vertical hole with Column Widths set to Handbook Width Columns. We’ve specified a Grid Column Template of 1.25fr 1fr 1.5fr. The Grid is split into 3 tracks. Each and every monitor’s dimension is proportional to its fractional unit (fr) price relative to the entire:

  • First monitor: 1.25fr takes up 1.25 / 3.75 (or ~33.33%) of the to be had house.
  • 2d monitor: 1fr takes up 1 / 3.75 (or ~26.67%) of the to be had house.
  • 3rd monitor: 1.5fr takes up 1.5 / 3.75 (or ~40%) of the to be had house.

We’ve set each and every row to a set top.

Divi 5 CSS Grid

Sidebar

We use a 4-column Sidebar structure to construct our design on this instance. We’ve used responsive gear to regulate the columns for smaller units, set Column Widths to Equivalent Width Columns, and left all different settings at their defaults. We additionally added a Nested Row to the ultimate column and used Divi’s Show Order settings to keep an eye on how the columns show on Cell units.

Divi 5 CSS Grid

.et_bloom .et_bloom_optin_1 .et_bloom_form_content { background-color: #4843d2 !necessary; } .et_bloom .et_bloom_optin_1 .et_bloom_form_container .et_bloom_form_header { background-color: #ffffff !necessary; } .et_bloom .et_bloom_optin_1 .carrot_edge .et_bloom_form_content:prior to { border-top-color: #ffffff !necessary; } .et_bloom .et_bloom_optin_1 .carrot_edge.et_bloom_form_right .et_bloom_form_content:prior to, .et_bloom .et_bloom_optin_1 .carrot_edge.et_bloom_form_left .et_bloom_form_content:prior to { border-top-color: clear !necessary; border-left-color: #ffffff !necessary; }
@media most effective display and ( max-width: 767px ) {.et_bloom .et_bloom_optin_1 .carrot_edge.et_bloom_form_right .et_bloom_form_content:prior to { border-top-color: #ffffff !necessary; border-left-color: clear !necessary; }.et_bloom .et_bloom_optin_1 .carrot_edge.et_bloom_form_left .et_bloom_form_content:after { border-bottom-color: #ffffff !necessary; border-left-color: clear !necessary; }
}.et_bloom .et_bloom_optin_1 .et_bloom_form_content button { background-color: #f92c8b !necessary; } .et_bloom .et_bloom_optin_1 .et_bloom_form_content .et_bloom_fields i { shade: #f92c8b !necessary; } .et_bloom .et_bloom_optin_1 .et_bloom_form_content .et_bloom_custom_field_radio i:prior to { background: #f92c8b !necessary; } .et_bloom .et_bloom_optin_1 .et_bloom_border_solid { border-color: #f7f9fb !necessary } .et_bloom .et_bloom_optin_1 .et_bloom_form_content button { background-color: #f92c8b !necessary; } .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 !necessary;}

Download For Free

Obtain For Unfastened

Sign up for the Divi E-newsletter and we will be able to e mail you a duplicate of without equal Divi Touchdown Web page Format Pack, plus lots of different wonderful and loose Divi sources, guidelines and tips. Observe alongside and you’ll be a Divi grasp very quickly. If you’re already subscribed merely sort on your e mail cope with beneath and click on obtain to get entry to the structure pack.

You will have effectively subscribed. Please test your e mail cope with to verify your subscription and get get entry to to loose weekly Divi structure packs!

Get Began With CSS Grid In Divi 5 Nowadays

CSS Grid in Divi 5 permits Divi customers to construct actual layouts with limitless customizations — all with out code. From auto placement in pre-built row constructions to fine-tuning offsets for asymmetrical grids, the versatile basis for responsive, trendy internet sites sticks out. We inspire you to dive in, experiment with those settings on a brand new challenge, and percentage your ideas within the feedback beneath on our social media channels.

As we edge nearer to the Divi 5 Beta Segment, please percentage your ideas and any insects you might to find to lend a hand us transition into the following section. We depend closely on consumer comments to lend a hand us make Divi 5 the most productive it may be.

The put up Everything You Need To Know About Divi 5’s CSS Grid System 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!