All tools › 🎨 Design

CSS Grid Generator

Create a CSS grid visually and copy the CSS and sample HTML.

Fixed column counts do not automatically collapse on narrow screens. Adjust the column count in a media query for your own layout.

How it works

Set columns, rows and gaps, then choose equal columns, a wider first column or a fixed sidebar. Adjust item alignment and see the layout change immediately.

Copy the generated CSS and matching HTML into your project. The preview background and numbered cell styling are illustrative; the generated CSS contains the layout rules. Fixed column counts require your own media queries for responsive designs.

Everything runs locally in your browser.