Grid
Build responsive two-dimensional layouts with CSS Grid
The Grid component creates responsive layouts with defined columns and rows. It is ideal when content needs to align in two dimensions, such as card grids, galleries, feature comparisons, and structured page sections.
👉🏻 Open the Grid Project in Elements that was used in this video.
How to Use Grid
You’ll find Grid under Layout in the Components list.
Drag Grid onto the page.
Add Containers or other components to the grid.
Set the number of columns and rows.
Adjust horizontal and vertical gaps.
Select a child Container and set it to act as a Grid Item when it should span specific columns or rows.
A newly added Grid may not look divided until it contains child components. Enable Preview Columns while editing to make the structure easier to see.
Component Settings
Tags
Add tag titles when the Grid itself should be controlled by Filter or Filter Tags.
Filter
Enable filtering to make the Grid a filterable item. Choose parent or custom grouping and a Dim, Zoom Out, or Slide transition.
Columns & Rows
Preview Columns displays the grid structure in Edit mode. It does not affect the published page.
Horizontal Gap and Vertical Gap set spacing between cells. Both default to theme spacing 2.
Columns sets between 1 and 12 columns and defaults to 4.
Rows can be Auto or a fixed value from 1 to 12. The default is Auto.
Grid Alignment
Auto Flow
Row — Places items by row. This is the default.
Column — Places items by column.
Dense — Attempts to fill earlier gaps.
Row Dense and Column Dense — Combine a direction with dense placement.
Auto Cols and Auto Rows size automatically created tracks. Options are None, Auto, Min Content, Max Content, and 1 Fr.
Justify Content and Align Content position the grid tracks within the component. Justify Items and Align Items position children inside their grid areas.
Link
The Link group can make the whole Grid clickable. Avoid using it when the Grid contains its own links or buttons.
Tips and Best Practices
Start with fewer columns: Four columns with one-column items is easier to manage than twelve columns unless you need finer spans.
Use child spans deliberately: Set Containers to Grid Item only when they need explicit column or row placement.
Review every breakpoint: Reduce column counts on narrow screens to keep content readable.
Related Components
Flex — Better suited to a single row or column.
Container — Can be configured as a Grid Item and span multiple tracks.
Link to a page, resource, anchor, email address, or website.
Control positioning, stacking, visibility, overflow, and isolation.
Set width, height, and responsive size constraints.
Add responsive margin and padding.
Control fonts, text spacing, decoration, colour, and semantic wrappers.
Apply colour, image, gradient, SVG, video, and hover backgrounds.
Choose what animates and set its timing curve, duration, and delay.
Apply shadows, opacity, and hover effects.
Apply blur, brightness, saturation, shadow, and backdrop effects.
Scale, rotate, move, and skew components.
Set border style, colour, opacity, width, radius, and hover states.
Add CSS classes and IDs, or change supported HTML tags.
Last updated
Was this helpful?

