Build Grids Visually With Divi 5’s New CSS Grid Editor (New Feature)

by | Aug 26, 2026 | Etcetera | 0 comments

Divi 5 already will provide you with a whole CSS Grid machine for constructing two-dimensional layouts throughout the Visible Builder. You’ll be able to outline columns and rows, keep watch over gaps and observe sizes, use premade grid buildings, and create Grid Offset Laws for layouts the place sure pieces want to span or transfer otherwise.

The brand new CSS Grid Editor provides a visible layer to that workflow. As an alternative of shaping a complicated grid thru settings by myself, you’ll open a are living grid canvas, drag tracks to resize them, reposition pieces, trade gaps, and pull nook handles to create row and column spans whilst gazing the construction take form.

On this instructional, we’ll use the Grid Editor to construct an uneven twelve-photo gallery throughout 4 columns. Alongside the way in which, we’ll additionally attach the format to Grid Offset Laws, Quantity Variables, Presets, Prolong Attributes, Side Ratio, and Symbol Framing so the completed gallery is reusable and responsive.

What The CSS Grid Editor If truth be told Does

CSS Grid is a two-dimensional format machine. You outline columns and rows on a guardian container, then the kid components go with the flow into that construction. Person positions can span a couple of columns or rows, which makes Grid particularly helpful for galleries, editorial layouts, function playing cards, product collections, and different designs the place horizontal and vertical alignment want to paintings in combination.

Flexbox is designed essentially round one axis at a time, whilst Grid handles rows and columns in combination. A format with one huge picture beside two smaller stacked photographs, with the encircling edges ultimate aligned, is a herbal use case for Grid.

Comparison of one-dimensional Flexbox and two-dimensional CSS Grid layouts

Divi 5’s CSS Grid system already exposes the underlying format controls within the Visible Builder, together with columns, rows, observe sizing, gaps, alignment, and Grid Offset Laws. The Grid Editor will provide you with differently to paintings with that very same machine by means of translating the construction into a visible canvas.

Open it and you’ll see the grid as a choice of tracks and preview pieces, then form the ones tracks at once. Adjustments made at the canvas are mirrored within the corresponding Grid settings and Offset Laws, so the visible editor and the settings panel stay two perspectives of the similar format.

The Grid Lives In The Container, No longer The Pieces

One of the vital helpful portions of Divi 5’s Grid implementation is that the format is saved on the container degree. Grid Offset Laws goal positions the use of pseudo-classes moderately than striking format settings at once at the little one modules themselves.

That suggests resizing a preview merchandise within the Grid Editor adjustments the container’s laws moderately than editing the Symbol, Textual content, Team, or different module occupying that place. You’ll be able to exchange the content material, upload or take away kids, and reuse the construction with the Loop Builder whilst preserving the grid good judgment become independent from the content material.

Issues You Can Do Within The Editor

Six core movements duvet many of the visible grid-building workflow.

Drag The Nook Anchors To Resize An Merchandise. Each and every preview merchandise has draggable handles on its 4 corners. Pull one outward to make that place span further columns, rows, or each. That is how we’ll create the bigger function cells in our gallery.

Drag And Drop An Merchandise To Reposition It. Transfer a numbered preview merchandise into a distinct cellular to modify its place throughout the grid. Divi data that placement during the container’s Grid Offset Laws.

See also  ♾️ Get Divi 5 For Life (One Payment, Unlimited Websites)

Alter The Gaps. Horizontal and vertical gaps may also be modified numerically or dragged at once between tracks. A are living price seems as you regulate them, making it simple to discover spacing visually after which choose a precise price.

Drag Column And Row Edges. Drag a grid line to resize the tracks on both sides. This will provide you with a visible solution to create asymmetric columns and rows as a substitute of depending most effective on equal-width buildings.

Upload Placeholder Grid Pieces. The Grid Pieces keep watch over provides pattern packing containers to the editor so you’ll preview an extended format ahead of each actual module has been added. Those are visualization aids most effective; they don’t create exact modules or content material within the Row.

See Offset Laws Highlighted. Grid Offset Laws are displayed at the canvas, together with which positions they have an effect on. That makes an current complex grid more uncomplicated to know as a result of you’ll attach each and every rule to the a part of the format it controls.

Grid Offset Laws

Grid Offset Laws inform positions within a Grid to act otherwise from the bottom construction. A rule can goal a particular place, the primary or final thing, atypical and even pieces, repeating durations corresponding to each 3rd merchandise, or a customized nth-child trend.

You set up them underneath Grid Offset Laws within the container’s Design tab. Relying on what the format wishes, a rule can keep watch over values corresponding to Column Span, Column Get started, Column Finish, Row Span, Row Get started, and Row Finish.

Repeating objectives are particularly helpful for dynamic or longer grids. As an example, a rule focused on each fourth merchandise can create a repeated visible rhythm with out styling each and every little one one at a time. We duvet the ones patterns in additional intensity in this guide to Divi 5’s Grid Offset Editor.

The brand new Grid Editor makes the similar machine extra visible. While you transfer or resize a preview merchandise at the canvas, Divi mechanically creates the corresponding rule for that centered place. You’ll be able to then open the generated rule and fine-tune its placement values or trade its goal if you need the trend to copy.

How To Construct A Grid Visually With Divi 5’s CSS Grid Editor

We’re constructing a twelve-photo gallery with 4 columns and a mixture of huge, tall, extensive, and single-cell positions. The primary picture acts as the outlet point of interest, whilst the remainder spans create a staggered rhythm additional down the gallery.

Finished asymmetric twelve-image gallery built with the Divi 5 CSS Grid Editor

We’ll form the construction visually first, then attach repeated design values to Quantity Variables and Presets. After all, we’ll regulate the picture plants and responsive Grid settings so the gallery assists in keeping its supposed hierarchy at smaller breakpoints.

Step 1: Upload A Grid Row And Open The Editor

Open a clean web page within the Divi Builder and upload a Phase. While you insert a brand new Row, you’ll see Construct Customized Grid along Divi’s premade buildings. Make a choice it when you need to start with the Grid Editor moderately than a predefined format.

You’ll be able to additionally get started with an current construction. Open the container settings, cross to Design > Format, set Format Taste to Grid, and click on Open Grid Editor. This path works smartly when a premade Grid construction already will get you as regards to the design you need.

Build Custom Grid option in the Divi 5 structure picker

For this instructional, select Construct Customized Grid. The Grid Editor opens as a floating instrument panel, the place you’ll configure the grid and proceed running within the builder whilst it remains open.

CSS Grid Editor open inside the Divi 5 Visual Builder

In case you are running with an current component and can’t to find the Open Grid Editor button, take a look at its Format Taste first. The Grid Editor turns into to be had as soon as that component is the use of Grid.

Step 2: Construct The Grid Construction

Get started by means of atmosphere Grid Pieces to 12. Take into account that those are preview placeholders throughout the editor, now not exact Symbol modules. Appearing all twelve we could us see all the trend whilst we form the format.

Again in the true Row, upload twelve Symbol modules and add the images you need to make use of. The Grid Container controls the place the ones little one modules land.

See also  Diving Deep Into Advertising and marketing in Building (My Takeaways)

Twelve Image modules added as children of the Grid Row

The 4 columns seem around the Grid Editor, with their present observe sizes visual above the canvas. Use the plus and minus controls when you wish to have so as to add or take away tracks, and go away the row heights on Auto for this gallery so their ultimate dimension can reply to the content material and picture proportions.

Now form the primary function place. Grasp a nook take care of on merchandise 1 and drag it correct and down till it spans two columns and two rows. Pieces 2 and 3 occupy the remainder positions within the first row, whilst pieces 4 and 5 proceed the construction beneath them.

Transfer additional down the grid and provides pieces 6 and 7 taller positions by means of extending each and every one throughout two rows. Then make bigger merchandise 8 around the two columns beside them, growing a bigger function block reverse the tall cells.

For the overall a part of the gallery, make bigger merchandise 9 throughout columns 1 and a couple of and down thru the following row. Let merchandise 10 span the remainder two columns above pieces 11 and 12, which keep as unmarried positions.

As you resize pieces, rule labels seem within the editor. The ones labels attach the visible spans to the Grid Offset Laws being generated at the container.

Grid Offset Rules generated by resizing items in the Divi 5 Grid Editor

Preview the web page and the Symbol modules now occupy the construction you created. The Grid laws belong to the guardian container, so changing a picture or converting the kid content material does now not require rebuilding the grid itself.

Step 3: Set The Horizontal And Vertical Gaps

The cells are lately sitting at once beside each and every different, so upload some respiring room. Set Horz. Hole and Vert. Hole to 30px. You’ll be able to kind the ones values at once or drag the gaps at the Grid Editor canvas and watch the format replace.

The usage of the similar price in each instructions provides the gallery a constant rhythm whilst nonetheless permitting the otherwise sized cells to create the visible passion. As a result of this spacing price is also helpful in different places at the web site, save 30px as a Quantity Variable and reference that variable in each Hole fields.

Step 4: Taste The Photographs And Save The Design

The grid construction is done, so now we’ll give the images a shared visible remedy. Open the primary Symbol module, cross to the Design tab, and open Border. Set Border Width to 10px, Border Colour to #FFFFFF, stay Border Radius at 0, and use a Forged border on all 4 facets.

White border settings applied to the gallery Image module

Subsequent, open Field Shadow and choose the second one preset. Set Field Shadow Vertical Place to 1px, Field Shadow Blur Energy to 7px, go away Horizontal Place and Unfold Energy at 0, and set the shadow to #000000 at 30% opacity with Outer Shadow decided on.

Soft Box Shadow settings applied to a gallery Image module

The white body defines each and every {photograph} in opposition to the gallery background, whilst the cushy shadow creates sufficient separation to stay the borders from mixing into lighter spaces.

Save the finished picture styling as an Component Preset. For the reason that border and shadow belong to the similar gallery-image remedy on this instance, preserving them in combination makes the preset fast to use.

If you are expecting to reuse the border and shadow independently in different places, save them as separate Choice Team Presets as a substitute and mix the ones reusable selections inside of an Component Preset. That will provide you with extra flexibility when every other picture or module most effective wishes one a part of the remedy.

Now right-click the styled Symbol module and select Prolong Attributes. Prolong its Design Attributes to the opposite Symbol modules within the Row so that they obtain the similar preset and styling with out copying the supply picture content material.

Extend Attributes permits you to select which characteristic class to propagate, so settling on Design Attributes right here assists in keeping each and every {photograph}’s distinctive content material intact whilst distributing the shared design remedy.

Step 5: Fit The Symbol Ratios To The Grid

The Grid defines the format proportions, however the supply images nonetheless have their very own intrinsic shapes. To make the bigger and taller positions really feel intentional, give the ones Symbol modules ratios that fit the supposed visible proportions in their cells.

See also  HeyGen AI Review 2023 (Video Avatars, AI Voices & More)

Open the primary Symbol module, cross to Design > Sizing, and set Side Ratio to 1:1 for the huge opening picture.

Setting a 1:1 Aspect Ratio on a gallery Image module in Divi 5

Proceed during the function positions the use of the proportions designed for this gallery. Set pieces 6 and 7 to 1:2, merchandise 8 to 1:1, and merchandise 10 to 2:1. The remainder unmarried positions can stay the ratio that works for his or her supply images and to be had grid tracks.

When a ratio differs from the supply {photograph}, open Framing and set Object Have compatibility to Quilt. Quilt fills the outlined body with out stretching the picture, whilst Object Place permits you to keep watch over which a part of the {photograph} stays visual when cropping happens.

Pay specific consideration to portraits, faces, structure, or different photographs with an obtrusive point of interest. The Grid provides each and every picture a form, however Framing is what permits you to offer protection to the a part of the {photograph} that issues within that form.

Step 6: Alter The Grid For Pill And Telephone

The desktop gallery makes use of 4 columns and bigger gaps, so the overall step is adapting the construction for smaller monitors. Grid settings are responsive in Divi 5, because of this you’ll simplify the format at each and every breakpoint with out converting the desktop design.

Transfer to Pill view, open the Row settings, and cross to Design. In Sizing, set Width to 88% and Max Width to None. Then open the Grid Editor and scale back each Horz. Hole and Vert. Hole from 30px to 10px, giving the photographs extra space on the narrower width.

Transfer to Telephone and simplify the Grid to 1 column. For the reason that desktop format comprises Grid Offset Laws with multi-column and multi-row spans, evaluation the ones laws on the telephone breakpoint as smartly and override any spans that not belong within the single-column model. The purpose on telephone is a blank vertical gallery the place each picture can use the to be had width as a substitute of looking to keep the extra advanced desktop trend.

Divi’s responsive values cascade from greater breakpoints into smaller ones till you override them, so at all times investigate cross-check Pill and Telephone after converting the desktop Grid. On this instance, the 10px pill gaps can proceed into telephone, whilst the column rely and Offset Laws obtain their very own cell remedy.

Construct Your Grids Visually In Divi 5

The CSS Grid Editor provides Divi 5‘s current Grid machine a a lot more visible workflow. Columns, rows, gaps, observe sizes, merchandise placement, and Grid Offset Laws are nonetheless a part of the similar underlying format machine, however you’ll now see and manipulate that construction at once as a substitute of running thru settings by myself.

Our completed gallery is a superb instance of why that issues. The twelve images can trade, the modules may also be changed, and the similar container may ultimately be attached to the Loop Builder, however the uneven construction stays outlined on the guardian degree.

That separation makes the Grid Editor helpful past galleries. You’ll be able to use the similar manner for portfolio layouts, group directories, product collections, function sections, editorial feeds, and dynamic loops: construct the form visually, let the container personal the construction, after which come to a decision what content material will have to fill it.

The put up Build Grids Visually With Divi 5’s New CSS Grid Editor (New Feature) 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!