Getting started

The workspace

GridFlow has three panels. You change settings on the left, see the result in the middle and take the code from the right.

Controls #

The left panel holds every setting, grouped into sections you can fold and unfold:

SectionWhat it sets
PresetsLoads a complete starting layout. See Presets.
Columns and rowsHow many tracks there are and how big each one is. See Columns and rows and Track sizes.
GapSpace between tracks. See Gaps.
Selected itemLabel, colour, grid lines, alignment, duplicate and delete for the item you selected. See Working with items.
Template areasSwitches the code to named areas. See Template areas.
AlignmentHow items and tracks are aligned. See Alignment.
Container sizeWidth and height of the grid. See Container size.
Auto placementgrid-auto-flow, grid-auto-columns and grid-auto-rows. See Auto placement.

Preview #

The middle panel draws your grid using exactly the CSS shown in the Code panel, so what you see is what you get.

  • Cells with a + are empty grid cells. Click one to add an item there.
  • Rulers above and to the left show the real size of each column and row in pixels.
  • The readout in the panel header shows the track count and the grid's overall size, for example 5 × 5 grid · 820 × 340 px.
  • Hatching marks the gaps, and a dashed outline marks the edge of the grid container.
  • The selected item has a dark outline and a check badge.
  • Full / 768 / 375 shows the grid at the full panel width, at tablet width or at phone width.
  • Clear items removes every item and keeps your tracks. Reset returns everything to the default 5 × 5 grid. Both can be undone.

Code #

The right panel shows the generated CSS and HTML with syntax highlighting. It updates as you work.

  • Copy CSS and Copy HTML copy one block each. The button briefly shows Copied.
  • Download HTML + CSS saves gridflow-layout.html, a complete page you can open in a browser.

More detail is on the Exporting code page.

On phones and tablets #

On a tablet, the Code panel moves below the Controls and Preview. On a phone, tabs at the top switch between Controls, Preview and Code, so each panel gets the full screen width.

Light and dark theme #

The moon and sun button in the header switches the theme. GridFlow follows your system setting until you choose, then remembers your choice.