Open Setto

Grid layout

Place a group's children in columns and rows, with cells that can span and columns of different widths.

Where
Inspector, Layout section, Grid
Makes
Columns and rows of the group's children

A Grid group divides its box into columns and rows and puts one child in each cell, in order. When you add, remove or reorder a child, the ones after it move along to the next cell. Use a grid for galleries, cards in two or three columns, schedules, and figures with labels. For a single row or column, use Flex instead, and for text and numbers with headers, use a Table.

Setting a group to Grid

Select a group with children and click Grid in the Layout section. The group keeps its size, the children are ordered by their position, the gaps are taken from their current spacing, and the grid starts with 2 columns. See Changing the type.

In the Layers panel, the first child is the group’s lowest row. With a column count or a track list, children fill each row from left to right, and new rows are added as needed. A child that spans several cells takes all of them, and the next child carries on in the next free cell.

Cols
Number1 to 24, or emptyDefault 2

Equal columns that share the width left after padding and gaps. Content wider than its column extends past the cell.

Leave it empty (auto) to fill column by column instead. Children then run top to bottom, in Rows rows (2 if Rows is empty), with as many equal columns as needed. Cols is ignored while Column tracks has a value.

Rows
Number0 to 24, or emptyDefault auto

Leave it empty (auto) to add rows as needed, each as tall as its tallest child. Enter a number for that many rows of equal height. Typing 0 clears the field.

Column tracks
TextDefault Empty

Columns of different widths, written as a CSS track list with one entry per column. It’s used in place of Cols. For example, 200px 1fr 1fr is a 200 px column and two more that share the rest, and 1fr 2fr makes the second column twice as wide as the first. If you clear it, the grid goes back to 2 columns.

Column gap
Number0 to 500 pxDefault 16

The space between columns.

Row gap
Number0 to 500 pxDefault 16

The space between rows.

Alignment
Nine-point pickerDefault Children fill the height of their row

The row of the dot you pick sets where each child sits in its cell: top, middle or bottom. Until you pick one, children fill the height of their row. After that, set a child to 100% to make it fill again.

The column of the dot places the whole set of columns at the left, center or right. It only shows when the columns are narrower than the group, as with fixed tracks.

Distribute
MenuDefault Packed

Shares out any free horizontal space between the columns. The choices are Packed, Space between, Space around and Space evenly, and they work as they do in Flex. When it isn’t Packed, Alignment sets only the vertical position.

Padding
Box0 px and upDefault 0

The space between the group’s edges and the grid. Set two values, or four with Edit each side.

A three column grid with equal columns, then the same grid with a narrow first column and two wide columns (Column tracks 160px 1fr 1fr)A three column grid with equal columns, then the same grid with a narrow first column and two wide columns (Cols 3)

The size of a Grid group

Size Behavior
Width in px or % The columns divide up this width. This is the usual setting.
Height Auto As tall as the rows plus the gaps and padding. Use it with Rows empty.
Height in px or %, a number in Rows Equal rows divide this height.

Children of a Grid group

Each child has an In layout section. With several children selected, it edits all of them.

Width
Segmented

Fixed, Auto (sized to the content) or 100% (fills the cell).

Height
Segmented

The same three modes. In a grid, 100% is a single setting for both directions. Set either one to 100% and both show 100%, and change either one back to turn it off for both.

Alignment
SegmentedDefault –

Where this child sits in its cell: Top, Center or Bottom. The dash follows the group. It’s disabled at 100%.

Freely positioned
SwitchDefault Off

Takes the child out of the grid at its current position. It no longer takes up a cell, and its spans have no effect.

Col span
Number1 to 24Default 1

How many columns the child covers, including the gaps between them.

Row span
Number1 to 24Default 1

How many rows the child covers.

  1. Col span 2: covers two columns

In a grid, the arrow keys don’t reorder children. Drag them instead, or use Bring forward and Send backward.

Examples

ExampleFigures over their labels, filled column by column

On a blank scene, add six text layers in this order: a figure and then its label, three times over (12,400, then Bikes sold, and so on). Group them and click Grid. Clear Cols so it reads auto, and set Rows to 2. Each figure now sits above its label, and the three pairs stand side by side in equal columns.

Combining with other features

  • Shared child behavior. What every layout child has in common (disabled X and Y, drag to reorder, text, rotated children and the Scale tool) is covered on Groups and layout.
  • Cards of equal height. Set the Flex cards in a row to 100%, and every card in that row matches the tallest one.

Limits

  • You can’t place a child in a particular cell by number. Its order and spans decide which cell it lands in.
  • Row heights can’t be set as a list. Rows are either equal (a number in Rows) or sized by their content.
  • A gap can’t be negative.
Esc

Type to search every page. Try “cloner”, “padding” or “export”.

↑↓ Move↵ Open