> For the complete documentation index, see [llms.txt](https://scenegroup.gitbook.io/cavalry/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scenegroup.gitbook.io/cavalry/nodes/shapes/layout-shape/grid-layout.md).

# Grid Layout

Layout Shapes in a Grid.

Layouts can be found on the [Layout Shape](/cavalry/nodes/shapes/layout-shape.md) and the [Apply Layout](/cavalry/nodes/behaviours/apply-layout.md) Behaviour.

### UI

**Columns** - set the number of cells in a column.

**Rows** - set the number of cells in a row.

**Horizontal Padding** - add padding to the left and right of the layout.

**Vertical Padding** - add padding to the top and bottom of the layout.

**Cell Margins** - add padding to each cell.

**Direction** - determine shapes flow through the grid:

* **Flow Columns** - Shapes will be laid out from left to right (then top to bottom).
* **Flow Rows** - Shapes will be laid out from top to bottom (then left to right).

**Reverse Layout** **Order** - reverse the order **Layout Items** are ordered in.

**Shuffle** - randomise the order the Shapes are laid out in.

**Seed** - set a seed value for the **Shuffle**.

**Scale to Fit** - scale each Shape to fit its cell.

**Scale Multiplier** - increase/ decrease the scale of each Shape when using S**cale to Fit**.

**Keep Aspect Ratio** - maintain the aspect ratio for Shapes when using **Scale to Fit**.
