Grid settings
Cell spans
Click any cell in the preview, then set how many rows and columns it spans.
Live preview
Showing 9 cells. Selected cells show a blue ring.
Generated CSS
/* CSS Grid generator — generated by InstantTools.site */
.grid-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px 16px;
justify-items: stretch;
align-items: stretch;
grid-auto-rows: 80px;
padding: 16px;
}
.grid-item {
background: #eff6ff;
border: 1px solid #bfdbfe;
border-radius: 8px;
}
335 characters
How the grid CSS is assembled
repeat(3, 1fr)splits the row into three equal fractions;repeat(3, minmax(0, 1fr))adds a zero minimum so long content can shrink instead of overflowing.repeat(auto-fit, minmax(180px, 1fr))is the responsive pattern — columns collapse automatically on narrow screens.gapis emitted asrow-gap column-gap, andgrid-auto-rowsfixes the height of rows created implicitly by spanning cells.- Each spanning cell gets its own
.grid-item--nrule so you can copy just the spans you need.