Divi 5 just lately built-in a CSS Grid machine that provides a complete vary of grid features within the Visible Builder. This new function in Divi 5 permits somebody to construct advanced, responsive layouts with out writing code. The CSS Grid machine sticks out for its flexibility and keep an eye on in developing designs that adapt seamlessly throughout all gadgets.
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 usage of it to construct shocking web sites.
Let’s get began!
What Is CSS Grid?
CSS Grid is a local, two-dimensional format machine that adjustments internet design through enabling customers to create two-dimensional layouts, organizing content material in rows and columns with precision and versatility. In contrast to 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
Bring 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 through 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 web sites that carry out fantastically throughout all display sizes.
The Core Elements Of Divi 5’s CSS Grid
There are 3 major elements of the CSS Grid machine in Divi 5, together with:
Grid Boxes
In Divi 5, sections, rows, columns, and teams can function grid boxes, forming the basis of the grid construction. Those boxes outline the format’s framework, permitting you to arrange rows and columns without difficulty. Divi 5 makes the usage of CSS Grid simple.

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

Customizable Homes
Customers can regulate columns, rows, gaps, alignment, and responsive settings within the Visible Builder. Those controls allow you to outline the Grid’s construction, spacing, and behaviour throughout gadgets 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 usage of drop-down menus and visible previews, and Divi robotically generates blank, optimized CSS Grid code in the back of the scenes. This guarantees that freshmen can create skilled layouts whilst builders retain the versatility to dive deeper with customized changes.

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

Auto-placement simplifies the design procedure through 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 cell, pill, and desktop monitors with minimum effort.

How To Use Divi 5’s CSS Grid
On this phase, we’ll stroll you via how Divi 5’s CSS Grid works and learn how to use it. Get started through including a brand new phase to a web page in Divi 5. When the Insert Phase conversation field seems, you’ll realize that the row buildings have modified. Now, you’ll be able to make a choice from Flex boxes and Grid boxes.
Make a selection Grid when you want 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).

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 format purposes. That can assist you know the way all of it works, let’s stroll throughout the other settings related to CSS Grid.
Structure Taste
This permits you to select the kind of format you wish to have to your phase. When you choose a Grid construction, the Grid is robotically decided on through default. Different choices come with Flex and Block.

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

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

Column Widths
Those settings permit you to keep an eye on how columns behave. Equivalent Width Columns make all columns the similar width. You’ll be able to regulate the selection of columns and cave in empty columns the usage of this atmosphere.

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

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

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 measurement themselves accordingly.

In the end, Handbook Width Columns permits you to set customized widths for each and every column for my part, providing you with complete keep an eye on. You’ll be able to make one column broad and others slim, developing an asymmetrical glance.

Grid Auto Columns
This works with any variety beneath Column Widths. It defines how additional columns (created robotically when content material overflows) are sized. With auto, they fit the content material’s herbal width. You’ll be able to exchange it to a hard and fast worth the usage of any of Divi 5’s CSS devices.

Row Heights
The Row Heights settings allow you to keep an eye on how tall each and every row on your Grid is, providing you with the versatility to check your content material or design imaginative and prescient. Similar to columns outline the width, rows decide the peak. When opting for Auto Peak Rows, rows robotically regulate their peak according to the content material within them. This atmosphere is best for layouts the place content material varies, like a weblog with combined put up lengths or a gallery with other symbol sizes.
However, Equivalent Peak Rows makes all rows the similar peak, without reference to their content material. With Minimal Peak Rows, you’ll set a minimal peak for each and every row, however they may be able to develop taller if wanted. Fastened Peak Rows locks each and every row to a particular peak, they usually gained’t exchange, regardless of the content material. In the end, Handbook Peak Rows permits you to set customized heights for each and every row for my part, providing you with complete keep an eye on over person rows on your format.

Quantity Of Rows
The Selection of Rows settings permit you to outline what number of rows your Grid can have. This atmosphere works inside the Grid container and provides you with keep an eye on over the Grid’s vertical construction.

Grid Auto Rows
The Grid Auto Rows settings decide how the peak of additional rows is treated when robotically created as you upload extra content material past the predefined selection of rows. Those settings let new rows regulate their peak according to the tallest content material inside them, making it very best for dynamic layouts. You’ll be able to customise it with a hard and fast peak the usage of any of Divi 5’s CSS devices.

Grid Alignment Settings
The settings beneath Grid Course, Grid Density, Justify Content material, Align Pieces, Align Content material, and Justify Pieces mean you can keep an eye on how your grid pieces are organized and spaced inside the Grid container.
- Grid Course: This units the order wherein pieces fill the Grid, both Row or Column.
- Grid Density: Controls how auto-placed pieces fill empty area. Dense shall we later auto-placed pieces backfill gaps in the event that they are compatible; Sparse preserves herbal order.
- Justify Content material: Controls how the grid tracks are located alongside the inline axis (normally horizontal) within the container. Get started aligns the entire grid to the beginning, Middle facilities it, Finish aligns it to the tip. Area-between, Area-around, and Area-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, Middle to the center, and Finish to the ground. Stretch
makes pieces fill the entire peak in their row.
- Align Content material: Controls how the grid tracks are located alongside the container’s block axis (normally vertical).
- Justify Pieces: You’ll be able to align grid pieces inside their cells horizontally. Stretch occupies the entire width, Middle or Finish shifts them to the center or finish, and Get started aligns all of them to the left.

Grid Offset Regulations
Those regulations permit you to customise the location and measurement of particular Grid pieces inside your format, providing you with actual keep an eye on over how they span throughout rows and columns. Within the symbol under, we’ve created an offset rule referred to as First Merchandise Spans 2 Columns. This implies the primary merchandise stretches throughout two columns. Right here’s the breakdown of each and every atmosphere so that you’ll clutch the concept that:
- Admin Label: Lets you upload a reputation for simple id
- Goal Offset: Defines the rule of thumb kind, the usage 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 location and measurement of particular grid pieces. On this instance, it’s set to Column Span, which units the selection of columns an merchandise will have to stretch throughout.
- Offset Worth: This specifies the precise quantity of area or span an merchandise will have to quilt or shift. On this instance, the price is about to two, telling Divi to permit this primary grid merchandise to occupy 2 columns of the Grid.

You’ll be able to upload as many offset regulations as important through clicking the + Upload Grid Offset Rule button.

Responsive Choices
Divi 5 provides Customizable Responsive Breakpoints to taste your CSS Grid layouts for smaller monitors. 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 will have to occupy. As an example, within the Pill breakpoint, chances are you’ll need to set the span of a column to a few in order that it occupies 3 of the 4 columns for that breakpoint.

On the other hand, that column might 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 format appears flawless on each and every display measurement.
CSS Grid Examples
Listed below are 3 sensible examples of CSS Grids constructed with Divi 5 to encourage your designs. Every example represents each and every form of Grid construction, together with Masonry, Multi-Row, and Sidebar.
Masonry
On this instance, we carry a meals co-op in a 4-column format. The format makes use of Equivalent Width Columns with horizontal and vertical spacing (Hole) set to 35px. The selection 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 format is symmetrical, giving the format a blank glance.

Multi-Row
This format 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. Every monitor’s measurement is proportional to its fractional unit (fr) worth relative to the entire:
- First monitor: 1.25fr takes up 1.25 / 3.75 (or ~33.33%) of the to be had area.
- 2d monitor: 1fr takes up 1 / 3.75 (or ~26.67%) of the to be had area.
- 3rd monitor: 1.5fr takes up 1.5 / 3.75 (or ~40%) of the to be had area.
We’ve set each and every row to a hard and fast peak.

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

@media simplest 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 !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 { colour: #f92c8b !vital; } .et_bloom .et_bloom_optin_1 .et_bloom_form_content .et_bloom_custom_field_radio i:prior to { 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 robust { 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 robust, .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;}

Obtain For Loose
Sign up for the Divi Publication and we can e mail you a duplicate of without equal Divi Touchdown Web page Structure Pack, plus lots of alternative wonderful and loose Divi assets, pointers and methods. Apply alongside and you’ll be a Divi grasp very quickly. If you’re already subscribed merely kind on your e mail cope with under and click on obtain to get admission to the format pack.
You’ve effectively subscribed. Please test your e mail cope with to verify your subscription and get get admission to to loose weekly Divi format 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 buildings to fine-tuning offsets for asymmetrical grids, the versatile basis for responsive, trendy web sites sticks out. We inspire you to dive in, experiment with those settings on a brand new mission, and proportion your ideas within the feedback under on our social media channels.
As we edge nearer to the Divi 5 Beta Section, please proportion your ideas and any insects chances are you’ll in finding to lend a hand us transition into the following segment. We depend closely on consumer comments to lend a hand us make Divi 5 the most efficient it may be.
The put up The entirety You Want To Know About Divi 5’s CSS Grid Gadget gave the impression first on Sublime Issues Weblog.
WordPress Web Design