Grid settings
Tip: use repeat(3, 1fr), 200px, minmax(100px, 1fr), or any valid track list.
Design a CSS grid layout visually: set columns, rows, and gaps, then copy the generated HTML and CSS with a live preview.
Tip: use repeat(3, 1fr), 200px, minmax(100px, 1fr), or any valid track list.
Type any valid track list for columns and rows, such as 1fr 2fr 1fr, repeat(4, 1fr), or 200px auto, and the preview updates instantly. Adjust the gap and item count to see exactly how the layout behaves before you touch your stylesheet.
The generated code uses a plain .grid class and numbered .cell divs, so it drops into any project with no framework needed.
Fractional units (fr) share leftover space proportionally, auto sizes to content, and minmax() sets flexible bounds. The repeat() function keeps long track lists readable.
The tool counts your tracks and reports the grid shape, which helps catch typos like a missing unit that would silently break the layout.