Mastering Divi 5’s Grid Offset Editor

by | Jan 3, 2026 | Etcetera | 0 comments

Prior to CSS Grid in Divi 5, complicated layouts incessantly supposed further columns, adverse margins, and replica sections. It wasn’t blank or versatile, particularly when layouts had to adapt throughout breakpoints.

CSS Grid beef up in Divi 5 presented a right kind two-dimensional format gadget that lets you keep watch over construction with out depending on workarounds. And inside of that gadget, Grid Offset will provide you with direct keep watch over over the place a component begins, how some distance it stretches, and the way tall it runs within the grid. You outline place within the construction itself, reasonably than nudging issues into position.

As soon as you know the way get started and span paintings in combination, you’ll be able to construct versatile layouts with out litter or hacks.

How Grid Positioning Works

Divi 5’s Grid Offset Editor will provide you with actual keep watch over over the place modules land for your format. However positioning parts on a grid makes much more sense while you see what’s in reality constructed whilst you flip Grid on.

Grids Are Constructed On Traces

Whilst you permit Grid on a component, an invisible construction is created. Vertical traces outline columns, and horizontal traces outline rows. The modules you put inside of reside within the areas between the ones traces.

grid lines

Take a look at the grid above. The white vertical traces are numbered 1 thru 4 on the backside. The ones are column traces. The orange horizontal traces, numbered 1 thru 4 at the left, are row traces. The areas between are the gaps the place your content material lives.

Right here’s what most of the people pass over: on this 3-column grid, you’re now not operating with 3 issues. You’re operating with 4 column traces. The columns themselves are simply the areas between the ones traces.

Each module you put will get situated through telling it which line to start out at and the way some distance to stretch. Desire a module within the center column? Inform it to start out at column line 2 and span 1 column, finishing at line 3.

Get started, Span, And Finish

3 settings keep watch over the place every part lives. The get started line is the place the module starts. The span is what number of tracks (columns or rows) it covers. The finish line is the place it finishes.

Say you put Column Begin to 1 and Column Span to two. The module begins at line 1 and stretches to line 3, masking the primary two columns.

See also  Easy methods to Use Google Tendencies for search engine marketing and Higher Internet Content material

column start 1 span 2

Exchange Column Begin to 2, and the module starts at the second one line. Mixed together with your Span worth, it shifts into the following to be had column house.

The similar good judgment applies vertically. A module with Row Get started at 2 and Row Span of two occupies rows 2 and three, between row traces 2 and four.

row start 2, span 2

Why This Issues For Offset

Whilst you observe an offset, you exchange the positioning of a module’s starting point. Column Get started 2 strikes the module to start at the second one column line. The span surroundings then determines the quantity of house it occupies from that place to begin.

This line-based positioning makes grid layouts solid and predictable. You lock modules into actual places on an invisible framework, reasonably than pushing issues round and hoping they land in the suitable spot.

Whilst you permit Grid on a Segment or Row in Divi, the builder routinely creates this line construction in keeping with your column and row settings. You outline what number of columns you need, and Divi attracts the vital traces to shape that grid. Modules get positioned routinely within the order they seem, filling columns from left to proper and rows from best to backside.

Grid in Divi 5

But if you want a module to sit down someplace particular (like skipping the primary column or spanning a couple of rows), you’ll use the Grid Offset Editor to override the automated placement and place modules precisely the place you need them on the ones numbered traces.

What You Can In reality Regulate With Grid Offset Editor

When Divi presented CSS Grid, it introduced the power to construction layouts the use of rows and columns without delay. Up to now, most complicated layouts depended on padding changes, empty placeholder columns, or reproduction sections to put parts.

The ones spacing methods labored for easy buildings, however fell aside at other breakpoints. A grid is two-dimensional, so you’ll be able to keep watch over the place every part sits horizontally and vertically with out the ones workarounds.

Subscribe To Our YouTube Channel

As soon as your grid is ready, the Grid Offset Editor lets you regulate the location of person modules inside of it. You observe laws to transport, stretch, or reorder parts throughout the present grid construction.

grid offset rules

It opens whilst you click on + Upload Grid Offset Rule.

offset grid editor

Give it a label, then make a decision which part the offset rule will have to observe to within the Goal Offset dropdown:

element target

The Offset Rule dropdown will provide you with 7 key laws masking nearly each format state of affairs.

offset rules

  • Column Span: Units what number of columns a module covers. Supreme for full-width headings or large photographs.
  • Column Get started: Strikes a module horizontally through opting for the column line the place it starts. Helpful for staggered card layouts or focused content material.
  • Column Finish: Defines the place it stops horizontally. Mix with Column Get started for actual placement.
  • Row Span: Units what number of rows a module occupies. Easiest for tall photographs or spotlight blocks that reach vertically.
  • Row Get started: Strikes a module down through opting for the row line the place it starts. Nice for staggered or responsive flows.
  • Row Finish: Defines the place it stops vertically. Works perfect paired with Row Get started.
  • Grid Template Columns: Defines the column observe sizing for the centered grid merchandise (so one merchandise may have its personal inside column construction).
See also  Diving Deep Into Technical search engine marketing for Ecommerce (My Takeaways)

In any case, you put the Offset Price as 1, 2, 3, and so forth. to provide a parameter for positional adjustments.

Every of those settings addresses a format downside that in the past required workarounds or reproduction sections. By means of making use of a rule, you put modules precisely the place you need them. As soon as you know the way those items have compatibility in combination, positioning turns into planned and speedy.

Each offset rule you create routinely adapts throughout desktop, pill, and cell perspectives. Divi applies the similar rule to all breakpoints through default, protecting your format constant. If you want other positioning on smaller monitors, you’ll be able to override any rule on the pill or cell stage.

Learn Everything About Divi 5’s Grid System

The use of Offset Laws In Actual Layouts

Now that you know the way the offset controls paintings, let’s have a look at how they remedy actual format demanding situations.

1. Growing Complete-Width Parts

On occasion you want one part to stretch throughout all of the width, whilst different modules keep of their columns. Set Column Span to check your general column rely, and the module expands right away with out affecting anything round it.

The actual energy presentations up in the way you goal parts. Practice the span rule to the primary merchandise within the grid to create a hero segment on the best. Goal the last thing to make a full-width footer block. Want one thing extra particular? Use the nth baby rule to extend any module through its place, like making the 3rd card full-width in a product grid.

column span target element nth rule

You’re surroundings one rule that controls placement in keeping with construction, which makes the format adapt routinely as you upload or take away content material. This similar means works in two dimensions whilst you pair Column Span with Row Span, developing large and tall blocks.

Column Span additionally combines with Column Begin to place full-width modules decrease within the grid. Focused on is going past nth-child as smartly. You’ll goal even or bizarre pieces for alternating full-width sections, or use first and ultimate to take care of edge circumstances.

2. Growing Staggered Layouts

Staggered layouts upload visible hobby through offsetting parts reasonably than lining them up uniformly. With Column Get started and Row Get started, you’ll be able to shift particular modules to start at a special column line, developing that offset impact naturally.

Set your grid to 3 rows, then goal each 3rd merchandise and set Row Begin to other numbers. The ones modules shift over, leaving house in previous columns and making a blank staggered development. The format remains structured, however the rhythm breaks up the monotony. The stagger works since you’re controlling the place parts start.

See also  15 Simple-to-Use Video Enhancing Tool for Desktop

When you want extra keep watch over over how a lot house every part takes, pair Column Get started with Column Span. A module that begins at column 2 and spans two columns creates a special visible weight than person who begins at column 2 and spans 1. You’ll additionally layer Row Get started values throughout other nth-child laws. Each 2d merchandise offsets somewhat, and each fourth offsets extra, supplying you with rhythm permutations with out development separate grids.

3. Stretching Parts Vertically

Now not each part wishes the similar top. Row Span lets you stretch a module vertically throughout a couple of rows, making it stand out with out disrupting the grid construction. Set your grid to 3 rows, then goal a particular merchandise and set Row Span to two or 3. That module stretches taller, occupying a couple of row tracks whilst surrounding parts glide round it naturally.

Featured content material, spotlight playing cards, and pictures that want extra visible weight all take pleasure in this means.

The grid holds the whole thing in position when you inform one part to take in extra vertical house. Row Span works along Column Span when you need featured playing cards that dominate each dimensions. A module with Row Span 2 and Column Span 2 turns into a point of interest in a card grid.

You’ll additionally place tall playing cards decrease within the format the use of Row Get started with Row Span, developing uneven designs the place visible weight shifts down the web page. For responsive layouts, other Row Span values paintings at every breakpoint. A tall card on a desktop would possibly span 3 rows, however on cell, the place vertical house issues extra, you’ll be able to scale back it to span 1 row.

Take a look at CSS Grid In Divi 5 As of late!

Grid Offset in Divi 5 places actual positioning keep watch over into a visible interface. As soon as you know the way traces, spans, and get started positions paintings in combination, development layouts turns into planned reasonably than guesswork. The construction holds throughout each display dimension since you’re defining place within the grid itself.

Advanced layouts now not want padding methods, empty columns, or reproduction sections. You observe offset laws that inform every module precisely the place to sit down, and the format adapts as your content material adjustments. The similar rules paintings whether or not you’re developing full-width hero blocks, staggered card layouts, or tall featured sections.

The publish Mastering Divi 5’s Grid Offset Editor 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!