Skip to content
KlockBase

CSS Grid Generator

Design Tools

Build CSS Grid layouts

Presets
Click and drag to create areas. Click an area to select it.
1,1
1,2
1,3
2,1
2,2
2,3
3,1
3,2
3,3
.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 12px;
}

About CSS Grid Generator

Visual CSS Grid layout builder with code export.

Was this tool helpful?

Frequently Asked Questions

What is CSS Grid?
CSS Grid is a two-dimensional layout system that lets you arrange content in rows and columns simultaneously. It provides precise control over both horizontal and vertical placement of elements on a page.
How do I use this CSS Grid generator?
Set the number of rows and columns, adjust the gap between cells, and optionally customize the size of each column and row using fr units, px, or other CSS units. The visual preview updates in real-time and you can copy the generated CSS.
What is the fr unit in CSS Grid?
The fr (fraction) unit represents a share of the available space in a grid container. For example, three columns set to 1fr each will each take up one-third of the available width.
Is my data safe?
Yes! All processing happens entirely in your browser. No data is collected, stored, or transmitted to any server.
Can I customize individual column and row sizes?
Yes. You can set each column width and row height independently using values like 1fr, 2fr, 100px, auto, or minmax() expressions to create complex responsive layouts.
Ad
728 × 90