Portfolio projects regularly need different amounts of house. A symbol id would possibly deserve a large serve as card, while a advertising marketing campaign image works across the width of the segment. With Divi 5 and its CSS Grid Editor, you’ll have the ability to get ready these items with visual controls and keep an eye on for any sized tool.
In this tutorial, we’ll assemble a masonry-style portfolio with 8 manually created project enjoying playing cards. The desktop structure combines not unusual, featured, tall, huge, and full-width enjoying playing cards. We’ll then rearrange it to two columns on tablet and one column on phone.
We built this structure to show how portfolio items can lengthen previous equal-width columns, then checked the finished design on desktop, tablet, and contact. We’ll keep an eye on the card positions and the column rely for each and every tool.
What Is CSS Grid?
CSS Grid is a browser structure system for arranging content material subject matter in two dimensions: rows and columns. You define each and every together, allowing elements to proportion a development across the internet web page while occupying different amounts of house.
A grid has two parts: the mummy or father container and its direct youngsters, referred to as grid items. The container defines the development, in conjunction with practice sizes, spacing, and default alignment. Its items occupy that development.

Each and every row or column is a practice. Where a row and column intersect, they form a cell. The space between tracks paperwork the gaps. Tracks can be an identical in size or use different widths and heights to suit the content material subject matter.
Grid lines are the bounds on both sides of each and every practice. Items can drift into available cells mechanically or get began at specific grid lines. A span determines what collection of tracks an products occupies: spanning two columns makes it wider, while spanning two rows makes it taller. You’ll have the ability to moreover keep an eye on an products’s alignment within its assigned house.
What Is The CSS Grid Editor?
The CSS Grid Editor in Divi 5 is a personalized visual section that makes Grid easy to create. You’ll have the ability to drag items to new positions, resize them all the way through tracks, and keep an eye on gaps and practice sizes. Placement edits are stored as regulations on the mom or father container. Responsive overrides let you keep an eye on the development for quite a lot of show widths.

We’ll use the ones controls to build a portfolio with a large number of card sizes, then simplify its affiliation for tablet and contact.
Preview And Must haves
The desktop affiliation places the principle project in a two-column, two-row structure. A tall card occupies the appropriate aspect, a big card sits further down, and the overall project stretches across the bottom of the grid.
On tablet, the featured and banner enjoying playing cards span each and every columns. The other enjoying playing cards occupy one cell each and every, with automatic placement working out their starting positions.
On phone, each and every card occupies a single cell. This produces one vertical sequence of projects with a continuing row height.

Faster than you get started, have Divi 5 installed and acquire 8 project pictures, project titles, and sophistication labels. Optimize each and every image to stick its file size underneath 200 KB. Divi 5’s Facet Ratio and Symbol Framing settings let you keep an eye on the proportions and positioning of image elements within their frames. Open a internet web page throughout the Visible Builder and get began with a brand spanking new segment to your portfolio.
Set Up The Portfolio Section And Grid Row
Keep the segment introduction transient. You’ll have the ability to add a heading, an identical to “Determined on Art work,” above the grid, followed thru a sentence describing the projects. Place that content material subject matter in a separate row so it remains outside the portfolio’s placement regulations.
Set the segment’s Background Color to #dbe4df and its height and bottom Padding to 5%. Beneath your introduction, add a single-column row to serve as the principle project card.
Open the row’s Sizing settings, then set Width to 90% and Max Width to 1300px.
The ones row-sizing values care for the grid’s inset from the segment’s edges and limit its width on upper shows.
![]()
Move to Design > Structure and set Structure Style to Grid. Use the following desktop values:
- Column Widths: Similar Width Columns.
- Amount Of Columns: 4.
- Horizontal Hollow: 1rem.
- Vertical Hollow: 1rem.
- Grid Auto Rows: 15rem.
- Grid Density: Auto.
The 4 tracks determine the ground development. A card can span a variety of of the ones tracks while the row keeps its widths an identical. Each and every mechanically created row is 15rem tall, with the vertical hollow keeping apart adjacent rows.

Portfolio Taking part in playing cards
Open the principle column’s settings and set its Background Color to #134e48.
Select a project image underneath Background and keep Background Image Measurement set to Cover. The image fills the card’s background, so its crop changes with the card’s dimensions.
Add a linear gradient. Set the principle prevent to rgba(0, 0, 0, 0.8) at 0%, the usage of black with 80% opacity.
Configure the second prevent to rgba(0, 0, 0, 0.1) at 100%, the usage of black with 10% opacity.
Set Gradient Path to 45deg and turn on Place Gradient Above Background Image so the overlay darkens the background behind the card’s white text. Use the equivalent stops on all 8 enjoying playing cards, then check the result against each and every project’s image.
Align Portfolio Card Text At The Bottom
Beneath Structure, set the card’s Structure Style to Flex and its Structure Path to Column. Set Justify Content material subject matter to End to hold the text at the bottom as the card’s height changes. The row determines where the card sits, while the ones settings control the content material subject matter inside it.
Set Padding to 24px on all sides to leave room around the elegance and title.
Set Border Radius to 12px on all corners.
Beneath Advanced > Visibility, set Horizontal Overflow and Vertical Overflow to Hidden.
Add Portfolio Products Establish And Elegance
Add a Text Module throughout the card.
Enter BRANDING on the first line and Harbor & Pine beneath it, then practice Heading 3 to the project title throughout the text editor.
Set the category text color to #ffffff and Letter Spacing to 1px. For the provision structure’s fluid elegance size, set Text Measurement to clamp(0.72rem, calc(12.642px – 0.001133 * (100vw – 360px)), 0.7901rem).
Set the Heading 3 text color to #ffffff and Font Weight to 700. For the title’s Text Measurement, enter the provision structure’s fluid value: clamp(1.125rem, calc(0.004545 * (100vw – 360px) + 18px), 1.4063rem).
Copy And Personalize The Taking part in playing cards
Copy all of the card column until you might want to have 8 enjoying playing cards, then choose the second card forward of changing its content material subject matter. Duplication preserves the background overlay and styling you merely configured.
Throughout the reproduction’s Background settings, choose its project image and set the scale to Cover so it fills the card as the shape changes.
Edit the reproduction’s Text Module to replace the category and project title. Keep the title formatted as Heading 3.
Repeat the image, elegance, and title changes for the remainder six enjoying playing cards. The provision structure uses the ones projects in this order:
- Harbor & Pine — Branding.
- Fieldnote App — Web.
- Tidewell Tea — Packaging.
- Moth Atlas — Illustration.
- Kiln Season — Pictures.
- Quarterly 14 — Editorial.
- Orchard Co-op — Web.
- Evening time Market 2026 — Advertising and marketing marketing campaign.
Keep this order while arranging the desktop grid. It’ll moreover unravel the project sequence when the enjoying playing cards return to automatic placement on smaller shows.

Prepare The Desktop Grid With The CSS Grid Editor
Return to the row’s Structure settings and click on on Open Grid Editor. Its canvas implies that you’ll switch numbered items between cells and resize them the usage of their corner handles. The ones edits create placement regulations on the row. The Grid Editor documentation explains how the canvas and rule controls art work together.
Use the following positions to reproduce the desktop affiliation. Each and every get admission to supplies Column Get began, Row Get began, Column Span, and Row Span, in that order:
- Harbor & Pine: 1, 1, 2, 2.
- Fieldnote App: 3, 1, 1, 1.
- Tidewell Tea: 4, 1, 1, 2.
- Moth Atlas: 3, 2, 1, 1.
- Kiln Season: 1, 3, 1, 1.
- Quarterly 14: 2, 3, 2, 1.
- Orchard Co-op: 4, 3, 1, 1.
- Evening time Market 2026: 1, 4, 4, 1.
To leave room for the featured card, switch the third products, Tidewell Tea, to column 4 of the principle row and Fieldnote App to column 3 of that row.
Keep Harbor & Pine throughout the top-left cell, and resize it to span two columns and two rows. Extend Tidewell Tea all the way through two rows while holding its width at one column.
Resize Quarterly 14 to span the middle two columns of row 3, then stretch Evening time Market 2026 all the way through all 4 columns in row 4. Moth Atlas fills the cell underneath the Fieldnote App. Kiln Season and Orchard Co-op occupy the outer cells of row 3. Take a look at the ones positions against the checklist above.
For exact placement, review the editor’s regulations and check their get began and span values against the checklist. Give the rules recognizable Admin Label names in step with their project titles. Keep each and every rule targeted to its corresponding card and move away unused end values empty.

The main card occupies the width of two tracks and the height of two rows, in conjunction with the gap between them. The desktop grid, because of this reality, combines different card dimensions within one shared practice development.
Adapt The Grid For Tablet
Switch the responsive controls to Tablet, then set Amount Of Columns to 2 throughout the row’s Structure settings.
To cut back the spacing and card height for the narrower structure, set Horizontal Hollow and Vertical Hollow to 0.75rem and Grid Auto Rows to 13rem.
Open each and every card’s Column settings and pass to Design > Sizing. Select Tablet throughout the responsive controls, then set each and every Column Get began and Row Get began to Auto. The enjoying playing cards can then drift into the two available tracks. The following clip displays an intermediate reset on the first card; its featured width is able shortly.
Give Harbor & Pine and Evening time Market 2026 a Column Span of 2 and a Row Span of 1; the other six enjoying playing cards need each and every spans set to at least one.
Practice the ones settings to all 8 enjoying playing cards. Resetting the start we could within the grid to place enjoying playing cards on the two available tracks. Lowering the spans prevents the desktop banner from rising further columns and offers each and every tablet card a one-row height. Take a look at that the principle and shutting projects occupy complete rows and the middle six form 3 pairs.
Adapt The Grid For Phone
Switch to Phone and set the row’s Amount Of Columns to at least one. Keep each and every gaps at 0.75rem and set Grid Auto Rows to 16rem.
Open each and every card’s Column settings, pass to Design > Sizing, and choose Phone throughout the responsive controls. Set each and every Column Span and Row Span to at least one. Keep Column Get began and Row Get began at Auto, checking the featured and banner enjoying playing cards along with the average enjoying playing cards.
Repeat the sizing changes for all 8 enjoying playing cards, then review the portfolio from the principle project throughout the last. The 16rem rows create taller enjoying playing cards than the tablet structure does, while the single-column development supplies each and every project the entire available width. Take a look at each and every background crop and ensure the category and title keep all the way through the padded house.
Take a look at And Customize Your Portfolio Grid
Save the internet web page and inspect its front-end finish consequence at desktop, tablet, and contact widths. Resize the browser between those sizes as well, in particular around the breakpoints where the column rely changes.
At tablet width, check that the principle and shutting enjoying playing cards span each and every columns while the middle six form 3 pairs.
At phone width, scroll throughout the whole portfolio. All 8 projects must appear in one column with readable text and no horizontal overflow.
Check out the grid development and the content material subject matter inside it forward of the usage of the portfolio to your internet web page. Particularly, test that the banner stops spanning 4 tracks on smaller shows and that longer project titles have compatibility within their enjoying playing cards.
- Desktop and tablet: right kind card positions without overlaps, with the featured and banner enjoying playing cards spanning each and every available tracks on tablet.
- Phone: one column without horizontal scrolling.
- Card content material subject matter: readable titles throughout the padded house and background crops that keep each and every project’s very important details visible as the card changes size.
- Order: a clear project sequence all the way through devices.
Add Each and every different Mission To The Grid
When together with projects, reproduction a completed card Column and open Design > Sizing to keep an eye on its placement. For a ninth card underneath this desktop grid, set Column Span to 2 and Row Span to at least one.
Set Column Get began to at least one and Row Get began to 5. Take a look at that the new card occupies the principle two columns underneath the full-width banner.
On Tablet, use Auto for each and every starts and keep the spans at 2 and 1. The new card must fill a complete row beneath the prevailing projects.
On Phone, keep each and every starts at Auto and set each and every spans to at least one. Take a look at the new card at the bottom of the single-column structure, then replace its image and text with the new project’s content material subject matter.
You’ll have the ability to adapt the equivalent development to your non-public art work thru choosing which projects download extra space. Industry a card’s span to change its size all the way through the grid, then review its background crop and responsive placement together.
Give Your Portfolio Room To Vary
Same old, equal-width grids regularly energy unique projects into uniform boxes, clipping bold imagery and flattening visual hierarchy. Thru combining Divi 5, CSS Grid its native CSS Grid Editor, you become independent from from those rigid constraints—giving standout pieces the room they deserve while maintaining a cohesive, responsive drift.
Whether or not or now not you’re highlighting a symbol id with a multi-cell serve as card or scaling your structure proper right down to a clean single column on mobile, visual structure control makes complex web design approachable.
Ready to build your personal custom designed layouts? Download Divi 5 in recent times or uncover our deep dive to Be informed Further About Divi 5 choices and purposes.
The put up How To Create A Responsive Portfolio Grid With Divi 5’s CSS Grid Editor gave the impression first on Sublime Topics Weblog.





0 Comments