Building a grid
Working with items
Items are the children of your grid. Each one has a position, a size, a label and optional alignment of its own.
Add an item #
Click any empty cell that shows a +. A new 1 × 1 item fills that cell and is selected. Items are numbered in the order you add them. A number is never reused, even after you delete the item.
Select an item #
Click an item, or move the keyboard focus to it. The selected item has a dark outline and a check badge, and its settings appear under Selected item in the Controls panel. Press Escape to clear the selection.
Move and resize #
- Move: drag the item. It snaps to whole cells.
- Resize: drag the handle in the bottom-right corner. The item grows or shrinks by whole columns and rows.
Items can't overlap or leave the grid. If a move or resize would do that, the item stays where it last fitted.
Set exact grid lines #
Under Grid lines, type the Column start, Column end, Row start and Row end lines. End lines work as in CSS: an item from column line 2 to column line 5 spans 3 columns. The line below the inputs confirms the span.
If the lines don't work, a message explains why, for example It would overlap item 2 or It goes past the last column line (6), and the item stays where it was.
Label and class name #
Type a Label, such as Main content. GridFlow turns it into a valid CSS class name:
- Letters are lower-cased, and spaces and symbols become hyphens:
Main content→.main-content. - Accents are removed:
Café→.cafe. - A name can't start with a digit, so
2ndbecomes.item-2nd. - If two items would get the same name, the later one gets its number added:
.cardand.card-2. - An item without a label is called
.item-followed by its number.
The label is also the text inside the item in the generated HTML, and its name in template areas.
Preview colour #
Pick one of eight colours to tell items apart in the preview. Colours are never written into the generated CSS.
Item alignment #
Justify self and Align self override the grid's alignment for this item only. See Alignment.
Duplicate and delete #
- Duplicate copies the item, with its colour and alignment, into the first free space of the same size. A labelled item's copy gets the label with
-copyadded, for exampleCard-copy. If there isn't one, it uses a single free cell. If the grid is full, a message says so. - Delete, the × on the item, or Delete / Backspace removes it. An Undo button appears for a few seconds.