CSS Layout Generator
This generator will create a fluid or fixed width column layout, with up to 3 columns + header, footer and menu.
Below you’ll find a CSS Grid Generator that lets you quickly design modern, responsive layouts without writing everything from scratch. Use the visual controls to define columns, rows, gaps, and alignment, and see the layout update in real time as you make changes. Once you’re happy with your grid, the tool automatically generates clean, production-ready CSS and HTML that you can copy and use directly in your project.
Click a cell, or drag across several cells, to add a div. Click a div to select it, then drag the round handle to move it and the corner square to resize it.
Everything is worked out in your browser and nothing is uploaded. The container is set to 100% width and height, so give its parent a height.
The grid generator is a visual tool to help you in creating a grid layout for your website.
1fr is one share of the space that is left. A 2fr column is twice as wide as a 1fr column, however wide the page is.
The CSS grid-area is row start / column start / row end / column end. The end line is where the div stops, so a div in the first cell is 1 / 1 / 2 / 2.
Tab to a div and press Enter to select it. Arrow keys move it, Shift with the arrows resizes it, Delete removes it and Escape lets go.
Pixel sizes are drawn to scale for a 1440 pixel wide screen. Open the preview to see the grid at the full size of your window.
The generated container has height: 100%, which needs a parent with a height. If you want the grid to fill the window, change it to min-height: 100vh.
Use fr and % for sizes so the grid stretches with the page. For small screens, add a media query that changes grid-template-columns to a single column and puts each div on its own row.
The colors make each div easy to see in the editor and in the preview. Switch off Background colors above the code if you do not want them in your CSS.
Up to 24 of each. Large grids get small on a phone, so the row and column fields and the panel are the easier way to work on those.
No. The grid, the code and the preview are all created in your browser.
This generator will create a fluid or fixed width column layout, with up to 3 columns + header, footer and menu.
Create a CSS menu with this simple to use menu generator.
Create rounded corners using the property border-radius.