How To Create A Responsive Portfolio Grid With Divi 5’s CSS Grid Editor

by | Nov 17, 2026 | Etcetera | 0 comments

Portfolio tasks ceaselessly want other quantities of house. A logo identification may deserve a big characteristic card, whilst a marketing campaign symbol works around the width of the segment. With Divi 5 and its CSS Grid Editor, you’ll prepare this stuff with visible controls and regulate for any sized instrument.

On this instructional, we’ll construct a masonry-style portfolio with 8 manually created undertaking playing cards. The desktop structure combines common, featured, tall, large, and full-width playing cards. We’ll then rearrange it to 2 columns on pill and one column on telephone.

We constructed this structure to turn how portfolio pieces can prolong past equal-width columns, then checked the completed design on desktop, pill, and speak to. We’ll regulate the cardboard positions and the column depend for each and every instrument.

What Is CSS Grid?

CSS Grid is a browser structure device for arranging content material in two dimensions: rows and columns. You outline each in combination, permitting parts to proportion a construction around the web page whilst occupying other quantities of house.

A grid has two portions: the father or mother container and its direct kids, referred to as grid pieces. The container defines the construction, together with observe sizes, spacing, and default alignment. Its pieces occupy that construction.

Divi 5 Layout settings show grid track sizing spacing and default alignment

Each and every row or column is a observe. The place a row and column intersect, they shape a mobile. The gap between tracks bureaucracy the gaps. Tracks will also be equivalent in dimension or use other widths and heights to fit the content material.

Grid traces are the limits on both sides of each and every observe. Pieces can glide into to be had cells mechanically or get started at particular grid traces. A span determines what number of tracks an merchandise occupies: spanning two columns makes it wider, whilst spanning two rows makes it taller. You’ll additionally regulate an merchandise’s alignment inside its assigned house.

What Is The CSS Grid Editor?

The CSS Grid Editor in Divi 5 is a customized visible part that makes Grid simple to create. You’ll drag pieces to new positions, resize them throughout tracks, and regulate gaps and observe sizes. Placement edits are saved as regulations at the father or mother container. Responsive overrides permit you to regulate the construction for various display widths.

The CSS Grid Editor interface is open in the Divi 5 Visual Builder

We’ll use those controls to construct a portfolio with numerous card sizes, then simplify its association for pill and speak to.

Preview And Necessities

The desktop association puts the primary undertaking in a two-column, two-row structure. A tall card occupies the fitting facet, a large card sits additional down, and the general undertaking stretches around the backside of the grid.

On pill, the featured and banner playing cards span each columns. The opposite playing cards occupy one mobile each and every, with computerized placement figuring out their beginning positions.

On telephone, each card occupies a unmarried mobile. This produces one vertical collection of tasks with a constant row peak.

Portfolio layout

Prior to you start, have Divi 5 put in and accumulate 8 undertaking photographs, undertaking titles, and class labels. Optimize each and every symbol to stay its record dimension beneath 200 KB. Divi 5’s Aspect Ratio and Image Framing settings permit you to regulate the proportions and positioning of symbol parts inside their frames. Open a web page within the Visual Builder and get started with a brand new segment on your portfolio.

Set Up The Portfolio Phase And Grid Row

Stay the segment creation transient. You’ll upload a heading, equivalent to “Decided on Paintings,” above the grid, adopted by means of a sentence describing the tasks. Position that content material in a separate row so it stays out of doors the portfolio’s placement regulations.

See also  What Is A Site URL? (A Easy Video Clarification)

Set the segment’s Background Colour to #dbe4df and its height and backside Padding to five%. Underneath your creation, upload a single-column row to function the primary undertaking card.

Open the row’s Sizing settings, then set Width to 90% and Max Width to 1300px.

Those row-sizing values deal with the grid’s inset from the segment’s edges and prohibit its width on greater monitors.

Set the portfolio row width to 90 percent and max width to 1300 pixels

Move to Design > Format and set Format Taste to Grid. Use the next desktop values:

  • Column Widths: Equivalent Width Columns.
  • Quantity Of Columns: 4.
  • Horizontal Hole: 1rem.
  • Vertical Hole: 1rem.
  • Grid Auto Rows: 15rem.
  • Grid Density: Auto.

The 4 tracks determine the bottom construction. A card can span a number of of those tracks whilst the row assists in keeping its widths equivalent. Each and every mechanically created row is 15rem tall, with the vertical hole keeping apart adjoining rows.

Configure four equal grid columns with 1rem gaps and 15rem auto rows

Portfolio Playing cards

Open the primary column’s settings and set its Background Colour to #134e48.

Select a undertaking symbol beneath Background and stay Background Symbol Measurement set to Duvet. The picture fills the cardboard’s background, so its crop adjustments with the cardboard’s dimensions.

Upload a linear gradient. Set the primary prevent to rgba(0, 0, 0, 0.8) at 0%, the usage of black with 80% opacity.

Configure the second one prevent to rgba(0, 0, 0, 0.1) at 100%, the usage of black with 10% opacity.

Set Gradient Route to 45deg and activate Position Gradient Above Background Symbol so the overlay darkens the background in the back of the cardboard’s white textual content. Use the similar stops on all 8 playing cards, then take a look at the end result in opposition to each and every undertaking’s symbol.

Align Portfolio Card Textual content At The Backside

Underneath Format, set the cardboard’s Format Taste to Flex and its Format Route to Column. Set Justify Content material to Finish to carry the textual content on the backside as the cardboard’s peak adjustments. The row determines the place the cardboard sits, whilst those settings keep an eye on the content material inside of it.

Set Padding to 24px on both sides to depart room across the class and identify.

Set Border Radius to 12px on all corners.

Underneath Complex > Visibility, set Horizontal Overflow and Vertical Overflow to Hidden.

Upload Portfolio Merchandise Name And Class

Upload a Textual content Module throughout the card.

Input BRANDING at the first line and Harbor & Pine underneath it, then practice Heading 3 to the undertaking identify within the textual content editor.

Set the class textual content colour to #ffffff and Letter Spacing to 1px. For the supply structure’s fluid class dimension, set Textual content Measurement to clamp(0.72rem, calc(12.642px – 0.001133 * (100vw – 360px)), 0.7901rem).

Set the Heading 3 textual content colour to #ffffff and Font Weight to 700. For the identify’s Textual content Measurement, input the supply structure’s fluid price: clamp(1.125rem, calc(0.004545 * (100vw – 360px) + 18px), 1.4063rem).

Reproduction And Personalize The Playing cards

Reproduction all of the card column till you’ve got 8 playing cards, then make a selection the second one card sooner than converting its content material. Duplication preserves the background overlay and styling you simply configured.

Within the replica’s Background settings, make a choice its undertaking symbol and set the dimensions to Duvet so it fills the cardboard as the form adjustments.

Edit the replica’s Textual content Module to switch the class and undertaking identify. Stay the identify formatted as Heading 3.

Repeat the picture, class, and identify adjustments for the remainder six playing cards. The supply structure makes use of those tasks on this order:

  1. Harbor & Pine — Branding.
  2. Fieldnote App — Internet.
  3. Tidewell Tea — Packaging.
  4. Moth Atlas — Representation.
  5. Kiln Season — Pictures.
  6. Quarterly 14 — Editorial.
  7. Orchard Co-op — Internet.
  8. Evening Marketplace 2026 — Marketing campaign.

Stay this order whilst arranging the desktop grid. It is going to additionally resolve the undertaking collection when the playing cards go back to computerized placement on smaller monitors.

See also  Product Control vs. Program Control vs. Undertaking Control: Key Variations

Eight personalized project cards are ready for the Grid Editor

Prepare The Desktop Grid With The CSS Grid Editor

Go back to the row’s Format settings and click on Open Grid Editor. Its canvas allows you to transfer numbered pieces between cells and resize them the usage of their nook handles. Those edits create placement regulations at the row. The Grid Editor documentation explains how the canvas and rule controls paintings in combination.

Use the next positions to breed the desktop association. Each and every access offers Column Get started, Row Get started, Column Span, and Row Span, in that order:

  1. Harbor & Pine: 1, 1, 2, 2.
  2. Fieldnote App: 3, 1, 1, 1.
  3. Tidewell Tea: 4, 1, 1, 2.
  4. Moth Atlas: 3, 2, 1, 1.
  5. Kiln Season: 1, 3, 1, 1.
  6. Quarterly 14: 2, 3, 2, 1.
  7. Orchard Co-op: 4, 3, 1, 1.
  8. Evening Marketplace 2026: 1, 4, 4, 1.

To depart room for the featured card, transfer the 3rd merchandise, Tidewell Tea, to column 4 of the primary row and Fieldnote App to column 3 of that row.

Stay Harbor & Pine within the top-left mobile, and resize it to span two columns and two rows. Prolong Tidewell Tea throughout two rows whilst preserving its width at one column.

Resize Quarterly 14 to span the center two columns of row 3, then stretch Evening Marketplace 2026 throughout all 4 columns in row 4. Moth Atlas fills the mobile underneath the Fieldnote App. Kiln Season and Orchard Co-op occupy the outer cells of row 3. Test those positions in opposition to the record above.

For precise placement, evaluation the editor’s regulations and take a look at their get started and span values in opposition to the record. Give the principles recognizable Admin Label names according to their undertaking titles. Stay each and every rule focused to its corresponding card and depart unused finish values empty.

Check the featured card rule with two column and two row spans

The primary card occupies the width of 2 tracks and the peak of 2 rows, together with the space between them. The desktop grid, due to this fact, combines other card dimensions inside one shared observe construction.

Adapt The Grid For Pill

Transfer the responsive controls to Pill, then set Quantity Of Columns to two within the row’s Format settings.

To cut back the spacing and card peak for the narrower structure, set Horizontal Hole and Vertical Hole to 0.75rem and Grid Auto Rows to 13rem.

Open each and every card’s Column settings and move to Design > Sizing. Make a choice Pill within the responsive controls, then set each Column Get started and Row Get started to Auto. The playing cards can then glide into the 2 to be had tracks. The next clip displays an intermediate reset at the first card; its featured width is about later on.

Give Harbor & Pine and Evening Marketplace 2026 a Column Span of two and a Row Span of one; the opposite six playing cards want each spans set to at least one.

Follow those settings to all 8 playing cards. Resetting the beginning lets in the grid to position playing cards at the two to be had tracks. Decreasing the spans prevents the desktop banner from developing additional columns and provides each pill card a one-row peak. Test that the primary and final tasks occupy entire rows and the center six shape 3 pairs.

Adapt The Grid For Telephone

Transfer to Telephone and set the row’s Quantity Of Columns to at least one. Stay each gaps at 0.75rem and set Grid Auto Rows to 16rem.

Open each and every card’s Column settings, move to Design > Sizing, and make a selection Telephone within the responsive controls. Set each Column Span and Row Span to at least one. Stay Column Get started and Row Get started at Auto, checking the featured and banner playing cards in addition to the common playing cards.

Repeat the sizing adjustments for all 8 playing cards, then evaluation the portfolio from the primary undertaking in the course of the final. The 16rem rows create taller playing cards than the pill structure does, whilst the single-column construction offers each and every undertaking the complete to be had width. Test each and every background crop and make sure the class and identify stay inside the padded house.

See also  Get a FREE Toy Store Layout Pack for Divi

Test And Customise Your Portfolio Grid

Save the web page and check out its front-end consequence at desktop, pill, and speak to widths. Resize the browser between the ones sizes as neatly, particularly across the breakpoints the place the column depend adjustments.

At pill width, take a look at that the primary and final playing cards span each columns whilst the center six shape 3 pairs.

At telephone width, scroll in the course of the complete portfolio. All 8 tasks will have to seem in a single column with readable textual content and no horizontal overflow.

Investigate cross-check the grid construction and the content material inside of it sooner than the usage of the portfolio for your web site. Specifically, verify that the banner stops spanning 4 tracks on smaller monitors and that longer undertaking titles are compatible inside their playing cards.

  • Desktop and pill: right kind card positions with out overlaps, with the featured and banner playing cards spanning each to be had tracks on pill.
  • Telephone: one column with out horizontal scrolling.
  • Card content material: readable titles throughout the padded house and background vegetation that stay each and every undertaking’s essential main points visual as the cardboard adjustments dimension.
  • Order: a transparent undertaking collection throughout units.

Upload Some other Venture To The Grid

When including tasks, replica a finished card Column and open Design > Sizing to regulate its placement. For a 9th card underneath this desktop grid, set Column Span to two and Row Span to at least one.

Set Column Get started to at least one and Row Get started to five. Test that the brand new card occupies the primary two columns underneath the full-width banner.

On Pill, use Auto for each begins and stay the spans at 2 and 1. The brand new card will have to fill an entire row underneath the present tasks.

On Telephone, stay each begins at Auto and set each spans to at least one. Test the brand new card on the backside of the single-column structure, then substitute its symbol and textual content with the brand new undertaking’s content material.

You’ll adapt the similar construction on your personal paintings by means of opting for which tasks obtain more room. Trade a card’s span to change its dimension inside the grid, then evaluation its background crop and responsive placement in combination.

Give Your Portfolio Room To Range

Same old, equal-width grids ceaselessly drive distinctive tasks into uniform packing containers, clipping daring imagery and pulling down visible hierarchy. By means of combining Divi 5, CSS Grid its local CSS Grid Editor, you break away from the ones inflexible constraints—giving standout items the room they deserve whilst keeping up a cohesive, responsive glide.

Whether or not you’re highlighting a logo identification with a multi-cell characteristic card or scaling your structure all the way down to a blank unmarried column on cellular, visible structure keep an eye on makes advanced internet design approachable.

In a position to construct your personal customized layouts? Obtain Divi 5 nowadays or discover our deep dive to Be informed Extra About Divi 5 options and features.

The submit How To Create A Responsive Portfolio Grid With Divi 5’s CSS Grid Editor 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!