Getting started

Quick start

Build a layout and take the code into your project in about two minutes.

Build your first layout #

  1. Open the generator. Go to the GridFlow generator. It opens with a 5 × 5 grid, an 8px gap and one item in the top-left cell.
  2. Choose a starting point. Click a preset under Presets, for example Holy Grail, or set the number of Columns and Rows yourself.
  3. Add items. Click any cell that shows a +. A new item fills that cell and is selected.
  4. Shape the layout. Drag an item to move it. Drag the handle in its bottom-right corner to make it span more columns or rows.
  5. Name it. With the item selected, type a label such as Header under Selected item. The label becomes the class name .header in the code.
  6. Take the code. In the Code panel, click Copy CSS and Copy HTML, or Download HTML + CSS to save one ready-to-open file.

What you get #

For a header across three columns above a sidebar and main area, GridFlow writes:

.grid {
  display: grid;
  grid-template-columns: 200px repeat(2, 1fr);
  grid-template-rows: auto 1fr;
  gap: 16px;
}

.header {
  grid-column: 1 / span 3;
  grid-row: 1;
}

.sidebar {
  grid-column: 1;
  grid-row: 2;
}

.main {
  grid-column: 2 / span 2;
  grid-row: 2;
}
<div class="grid">
  <div class="header">Header</div>
  <div class="sidebar">Sidebar</div>
  <div class="main">Main</div>
</div>

Tips #

  • Your layout is saved in your browser, so it is still there when you come back.
  • Reset, Clear items, deleting an item and loading a preset all show an Undo button for a few seconds.
  • Everything can be done with the keyboard. See Keyboard shortcuts.