A row of cards that has to stay aligned down as well as across is awkward to build with columns alone, because each column only knows about itself.
A grid container lays the whole section out on a shared set of tracks, so every item lines up both ways.
Before You Start
- Edition: Free — works in Nexter Blocks (free) and with Nexter Blocks Pro.
- Block to enable: Container, switched on under Nexter > Blocks in your WordPress dashboard.
- A Container block on your page — see the Container block guide.
Steps
- Select your Container and set its layout to grid.
- Set the number of columns the grid should have.
- Set the gap between items.
- Add one container inside for each grid item, and put your content in those.
- Set a smaller column count for tablet and phone, then publish.
How It Behaves
The grid is a class on the parent container; the items are ordinary containers that the grid places.
- Measured on a published page: a container set to grid rendered
tpgb-gridon the wrapper, and each of the three child containers renderedtpgb-container-inlineinsidetpgb-cont-in. - The children do not need matching heights. The grid gives every item in a row the same height, which is the thing that is awkward to arrange by hand.
- Columns are per breakpoint. Three across on desktop and one on a phone is the usual setting, and it does not require a second section.
- Anything can be a grid item — each child is a full container, so it keeps its own padding, background and layout.
- Measured with Nexter Blocks Pro deactivated: the container itself still renders. It is a free block.
Limitations
- Items are placed in order. Rearranging visually means rearranging the blocks, or using the start and end controls on an individual item.
- Too many columns on a phone is the commonest mistake. Three narrow cards side by side are unreadable at 375px — drop to one.
- A grid does not scroll sideways. If the content genuinely does not fit, a carousel is the better tool.
- Deep nesting gets confusing quickly. A grid of grids is usually a sign the section wants splitting in two.
Troubleshooting
My items are stacked instead of side by side
Either the layout is still flex in column direction, or the column count at the width you are viewing is one. Check the setting at that breakpoint.
The gaps are uneven
Padding on the individual items is adding to the grid gap. Set the gap on the parent and leave the items’ own margins alone.
One item is much taller than the rest
That is the grid doing its job — the row takes the height of its tallest item. Trim the content or let the item span its own row.
It looks wrong on mobile
Set the column count for tablet and phone explicitly. Without that, the desktop count is inherited all the way down.










