Build CSS grid layouts visually and copy the code
The CSS Grid Layout Builder lets you configure grid columns, rows, gaps, and alignment visually. See a live preview of your grid and copy the CSS to use in any project.
Live grid preview updates as you change settings.
Everything runs in your browser. No data sent anywhere.
CSS Grid is a two-dimensional layout system that lets you place elements in rows and columns. It's the most powerful layout tool in CSS.
fr is a fractional unit. 1fr means "take up one equal share of the available space." Three columns of 1fr each means each column gets 1/3 of the width.
Yes. CSS Grid is supported in all modern browsers including Chrome, Firefox, Safari, and Edge.