VibeDict

Grid Layout

Grid Layout

A way to place boxes into rows and columns, like a checkerboard.

💡 It's like an egg carton: every item drops neatly into its own slot.

👆 Try it yourself

It really works — click around and see.

1
2
3
4
5
6
7
8
9
10
11
12
CSSdisplay: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;

🤖 Say this to your AI

Lay out the product cards in a Grid: 4 columns on desktop, 2 on tablets, and 1 on phones, with 20px gaps between them.

The key word is ‘Grid Layout’. Including it helps AI understand you much more precisely.

📌 Good to know

A Pinterest-style layout that stacks photos of different heights with no gaps is called a 'Masonry' layout.

When to use it

  • When you place things in multiple rows and columns, like products or a photo gallery

Also called: grid, columns, rows and columns, checkerboard, gallery layout, masonry, tiles

⚖️ Often confused with

Related terms