What are the Grid controls asking you to decide?
You may have a clear picture of the layout you want: three resource cards across the page, with one featured guide taking a little more room. Then you open the settings and encounter tracks, fractional units, spans and placement rules. The picture is familiar; the vocabulary makes the task feel more complicated.
CSS Grid is a system for arranging items within shared rows and columns. Divi 5 provides visual controls for that system. A track is one row or column, an fr value describes a share of available space, and a span describes how many tracks an item occupies. Understanding those three ideas makes it easier to choose a setting for a reason.
This guide explains the terms through a small resource library. The same reasoning applies to service cards, portfolios and product collections. If you are still deciding whether a section needs Grid at all, begin with my comparison of Grid and Flexbox in Divi 5.
The container sets the arrangement for its direct children
Start by identifying the parent container: the element holding the items you want to arrange. Its direct children become the grid items. If the parent holds six groups, each containing an image, heading and link, Grid arranges those six groups. The content within each group has its own layout.
This distinction prevents a common wrong turn. Changing a grid on the outer row will not necessarily change the spacing between a heading and paragraph inside a card. Before adjusting anything, use the builder's structure view to identify the level that owns the relationship.
For the resource library, I would keep each card together as one group. That makes it possible to move or enlarge a complete resource without leaving its title behind. Clear structure also makes later edits easier for the business owner.
Elegant Themes places the Grid choice under Design → Layout → Layout Style. Its documentation describes a visual editor for adjusting tracks, gaps and item placement. Check the options in your installed version against the current documentation before following a precise sequence.
A track is a complete row or column
A column track runs vertically through the grid. A row track runs horizontally. Their intersection forms a cell. An item can occupy one cell or extend across several, depending on its placement.
Think of a display cabinet with shared vertical dividers and shelves. One compartment may hold a small object; a larger display may use the space across two neighbouring compartments. The dividers describe the structure, while the objects describe the content placed within it.
MDN defines a grid track as the space between two adjacent grid lines. This is useful when the editor shows lines around the layout: the track is the area between those lines, rather than the line itself.
A three-column arrangement has four boundary lines across its width. You do not need to memorise line numbers to make a simple visual layout, but the distinction helps when a control asks for a start position or an end position. It is describing the edges of the area an item occupies.
Fractional units share the available space
The fr unit is a flexible share. In a simple row with three tracks sized 1fr 1fr 1fr, the tracks share the available space equally. A pattern of 1fr 2fr 1fr gives the middle track twice the flexible share of either neighbour.
For a simple numerical example, suppose a grid has 1,000 pixels of usable width and two 20-pixel column gaps. That leaves 960 pixels for its tracks. With the pattern 1fr 2fr 1fr and no content-imposed minimum interfering, the four shares are 240 pixels each: the tracks become 240, 480 and 240 pixels.
That example illustrates a relationship, not a fixed size to enter into Divi. As the container changes width, the shares change too. It is helpful when a layout should preserve an emphasis while responding to the space available.
MDN’s reference for grid-template-columns explains fractional track sizing and the automatic minimum associated with a bare fr value. Content can affect the final result, so 1fr should not be treated as an unconditional promise that every item will shrink to any width.
A percentage and a fraction make different promises
Percentages can be useful, though they require attention to the rest of the layout. Three columns at roughly one third each already consume nearly the whole container. Adding gaps on top can create an arrangement wider than the space available.
Fractional tracks are often a clearer starting point for a set of cards because the flexible space is shared after accounting for gaps and other track sizing. You can express a relationship without manually subtracting every gap from a percentage.
For a featured introduction beside two narrower supporting areas, 2fr 1fr 1fr may express the intended balance. For three equally important services, equal shares may be the better design. The technical setting follows the content priority.
Avoid giving a card extra room simply because the editor makes it easy. A larger item receives more visual attention. Its content should justify that emphasis, and its mobile version should remain useful when the geometry changes.
A span describes the tracks an item occupies
A column span of two means that the item occupies two column tracks. A row span works in the other direction. The span changes the item's place within the shared structure; it does not add a separate column inside the item.
In a three-column resource library, an introductory guide might span two columns while another card occupies the remaining one. The wider item also crosses the gap between those two tracks, so its area includes that intervening space.
Elegant Themes’ guide to Grid Offset Rules describes column and row spans as item placement settings. Its Grid Editor documentation also explains how resizing an item can create a placement rule for that item.
Treat that rule as a decision worth revisiting. If a card has been given a special position, adding or removing another card may expose an unintended gap or an awkward sequence. Test the collection as changing content, especially if someone else will maintain it.
Gaps separate items; padding protects their content
A grid gap is the space between neighbouring tracks. Padding is space inside an element, between its content and its edge. A card can therefore have both a gap separating it from the next card and padding around its own heading and description.
If every card feels crowded internally, increasing the grid gap addresses a different problem. If the cards feel joined together, increasing their internal padding may leave the outer relationship unchanged. Identify which boundary needs more room.
The same principle applies to section spacing around the collection. My explanation of white space in web design shows how small and large gaps communicate different relationships. A consistent set of spacing choices can make the grid feel deliberate without outlining every item.
Rows need room for real text
Equal-looking cards are appealing, though fixed row heights can become brittle. A short sample heading may fit neatly while a real service name wraps onto three lines. A translated title or a larger text setting can change the amount of space needed again.
Begin by allowing content enough room. Decide separately whether the card backgrounds should align, whether images need a consistent shape and whether links should sit near the bottom. Those are related visual goals, but a single fixed height may not solve them safely.
A row span can create a tall featured area, but it does not guarantee that its content fits. An image-heavy portfolio and a text-heavy service library need different tests. Avoid judging the structure from a collection of identical placeholders.
The CSS minmax() function expresses a minimum and maximum track size. You may encounter it in advanced templates or examples. It is a sizing range, not another kind of span. Prefer the builder’s suitable controls when they express the requirement clearly; learn raw templates when you need that extra control.
Automatic placement and manual placement carry different responsibilities
In a regular grid, items can flow through the available cells in their underlying sequence. Explicit positions and spans introduce exceptions to that pattern. Exceptions are useful for editorial emphasis, but each needs to behave sensibly when the content or viewport changes.
For a library that gains new articles frequently, I would start with a regular pattern and introduce one featured item only if its selection and placement are predictable. A carefully arranged portfolio with a fixed set of projects can support more manual composition.
What should happen when a seventh card appears? Add one on your test page and observe the next row. Then remove a card and check again. The answer should come from the intended reading order and content priorities rather than a series of compensating empty modules.
MDN’s Grid accessibility guidance explains that visual rearrangement does not automatically change the reading or keyboard order. Keep the underlying sequence logical, and check keyboard navigation when links or controls are distributed across a composed layout.
Practise with one safe, small collection
Use a staging copy or a separate test page, and keep a verified backup before changing an existing layout. Start with a parent containing a handful of self-contained cards. Use real headings, varied summary lengths and an actual link label.
Set the parent to Grid and establish a regular column arrangement. Adjust the gap, inspect the width available for text and save a baseline version. Next, give one suitable item a larger column span and compare the reading order.
Move through desktop, tablet and phone views. If the phone layout becomes one column, review the special span and any explicit positions rather than assuming they remain appropriate. The featured guide can keep its importance through order, heading and imagery even when it returns to ordinary width.
Finally, open the saved page outside the builder. Increase text size, follow its links with a keyboard and inspect widths between your main responsive settings. Watch for clipped text, sideways scrolling and focus moving in an unexpected sequence. Keep the simpler arrangement if the special treatment makes the content harder to use.
Use the vocabulary to describe the design intention
The most useful description of a layout is still an ordinary sentence: three comparable services, one featured starting point, or a growing collection of guides. Tracks establish the shared structure, fractional units distribute room, and spans give an item a larger area within it.
If your Divi layout depends on repeated offsets, empty modules or fixes that break whenever a heading changes, I can review its structure and build a more dependable responsive arrangement. See my WordPress design and improvement services if you would like help with a particular collection or page.
Sources and further reading
Elegant Themes: Grid Editor; Grid Offset Rules; MDN: Grid tracks; Column templates; minmax(); Grid accessibility. Checked 6 November 2026. Review after a material change to Divi’s Grid controls.
Important note
This article provides general information and professional commentary. It is not advice tailored to your particular business, website or circumstances, and it should not be treated as legal, financial, privacy, accessibility, cybersecurity or other specialist advice. Any opinions are my own professional judgement based on the information available when the article was researched.
Products, prices, services, software and official guidance can change. External links are provided for reference; I do not control third-party websites and cannot guarantee their continuing availability, accuracy or content. A link does not imply endorsement of everything published by that source.
Check current official information before making an important decision. Test technical changes safely, keep a verified backup, and obtain appropriately qualified advice where the consequences warrant it. Any sponsorship, free product, affiliate link or other commercial relationship relevant to the article will be clearly disclosed.




