How do I make a three-column layout with CSS Grid?
Choose CSS Grid, type 3 for the columns, set a gap and press Calculate. The result has display: grid and grid-template-columns: repeat(3, minmax(0, 1fr)). Copy it, rename .container to your own class and the children of that element fall into three equal columns.
What does minmax(0, 1fr) mean in the Grid result?
Each column takes an equal share of the free space, and the minimum of 0 lets a column shrink below the width of its content instead of pushing the grid wider than its box. The repeat() function writes that column rule once per column.
What is the difference between the Grid and the Flexbox output?
Grid output defines the columns on the container itself and lays every child into them. Flexbox output lets the children wrap and gives each one a width share through a second rule, so a row is built from item widths rather than from fixed columns.
What does the Alignment option change?
It sets the align-items property. In Grid it places each item inside its row area, and in Flexbox it places items inside their line. Stretch fills the height, while Start, Center and End position items at the top, middle or bottom.
Why does the last Flexbox item drop to the next line?
Each item is given a width of 100 divided by the column count, and the gap is added on top. Three items at 33.33% plus two gaps are wider than the container, so the third wraps. Reduce the basis in your own CSS or set the gap to zero.
Can this tool make rows, areas or responsive breakpoints?
No. It makes only equal columns with a gap and an alignment value. For named areas, spanning cells or media queries, write those parts by hand after you copy the snippet, and test the result in the browsers you care about.
Is my input uploaded anywhere?
No. The snippet is built in your browser from the four settings you choose, and nothing is sent to a server. The page does not store the values either, so refreshing it starts from the defaults.
How do I use CSS layout generator?
Choose Grid or Flexbox and set the layout properties to create copyable CSS.
Is my data uploaded to a server?
No. This tool runs locally in your browser. Your input is not uploaded.