Visual track editor — drag to span, paint named areas, copy grid-template CSS
About this tool
What does the CSS Grid builder let me do?
Define grid-template-columns and grid-template-rows visually with drag-resize tracks, set gap, and place items by dragging. The generated CSS updates live.
Does it support fr units, repeat(), and auto-fill?
Yes. Toggle between px, %, fr, auto, minmax(), and repeat() for each track. Shorthand notations like repeat(3, 1fr) are reflected in the output.
Can I place grid items manually?
Yes. Click any item to set its grid-column and grid-row start/end values, giving you named-line and span-based placement.
Is the output production-ready CSS?
Yes. Copy the container and items CSS directly. The output includes all placed items with their grid-column and grid-row values.
About
Tap two cells to place an item spanning the rectangle between them. Toggle paint mode to assign named areas instead.