Grid layout without the guesswork
CSS Grid is the cleanest way to lay elements out in two dimensions, but the syntax takes a moment to picture. This generator lets you set the columns, rows and gap with sliders and shows the tracks filling in live, so the relationship between the numbers and the layout is obvious.
Copy the container rule
The output is the CSS for the grid container — display, the column and row templates using repeat() and 1fr, and the gap. Paste it onto a wrapper and its children flow into the cells. It all runs on your device with nothing uploaded.