> ## Documentation Index
> Fetch the complete documentation index at: https://help.standards.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Layouts

Layouts are the fundamental structures containing a grid which controls the content structure within.

<Frame>
  <img src="https://mintcdn.com/standards/Tc_43o4c3o0PZCiL/images/Layouts.gif?s=2dbae122c359f3c01601e7a9a4a6ac2d" alt="Layout grid being edited" width="1080" height="540" data-path="images/Layouts.gif" />
</Frame>

***

## Basics

Nearly all content is wrapped in a **layout**. Most commonly, **layouts** are created automatically as elements like **media** and **text** are added. They are the structure around **columns**, inherently span the width of the window, control the grid, have spacing, and margins.

### Fundamentals

* **Layouts** are created when adding other elements.
* **Layouts** encapsulate **columns**.
* **Layout** settings such as grid count can change between breakpoints.
* **Layouts** will wrap if the contents within exceed the grid count.

<Info>
  Note: **Rows** have been replaced with **Layouts.** If you are familiar with rows in pre 12.0 releases, they are the same but with added functionality.
</Info>

***

## Grid

The grid of a **layout** is what controls the number of **columns** within. When the number of **columns** within a layout exceeds the grid count, it will wrap to the next line. This is foundational to mobile optimization, allowing columns to be side-by-side on desktop but then stack vertically on mobile.

<Frame>
  <img src="https://mintcdn.com/standards/rVQ0ufZ3xBiSqe1k/images/grid-override.gif?s=f4f486d60fe8a4de92f1d28003ecbd9d" alt="Grid count being overriden then tiles packed" width="3000" height="1500" data-path="images/grid-override.gif" />
</Frame>

### Pack columns

When changing the grid count, **columns** will stay wrapped. They can be repositioned in body, but selecting the ‘Pack columns’ button beside the grid input quickly repositions them.

### Tip

For tile based designs like a grid of images, it’s suggested to use a grid with less **columns** so the content wraps fluidly. Set up this way, you can add, remove, and reposition **columns** quickly.

***

## Default grid settings

While every **layout’s** grid count can be set individually, they are also controlled by a default grid setting. This default is what new **layout** grids will be set to. If this is overridden on a specific layout, it can be reset to the grid default.

<Frame>
  <img src="https://mintcdn.com/standards/Tc_43o4c3o0PZCiL/images/Grid-settings.gif?s=875d24c7c1a398ee89b8bb4c9d3016fe" alt="Editing a mobile breakpoint grid" width="1080" height="540" data-path="images/Grid-settings.gif" />
</Frame>

### How to change default grid settings

<Steps>
  <Step title="Select the breakpoint dropdown">
    Within the editor select the breakpoint dropdown from the top bar in the center
  </Step>

  <Step title="Open grid settings">
    From the bottom of the breakpoint dropdown, select **Grid settings**
  </Step>

  <Step title="Modify settings">
    In the right sidebar are settings that will affect an entire breakpoint. Make modifications and save by selecting **Apply changes**.
  </Step>
</Steps>

### Overrides

All **layout’s** grids can be modified to override the default grid. This is helpful when fine-tuning. Overridden **layout** grids can be reset by selecting the rotating arrow icon in the grid settings group.

* Settings in tablet and mobile breakpoints that differ from desktop will show an indicator
* Selecting the rotating arrow icon on a settings group will reset it to match desktop
* Visibility of layers can differ between breakpoints

***

## Columns

**Columns** are the child containing layer within **layouts** which encapsulate the content elements such as media or text.

* Contents within **columns** vertically stack
* If the number of **columns** exceeds the grid count in the **layout** they’re in, they will wrap below.
* **Columns** can be styled with fills, spacing, corner radius, and more

<Frame>
  <img src="https://mintcdn.com/standards/Tc_43o4c3o0PZCiL/images/column-wrap.gif?s=9d762aef6e0e669511fa21820164fb92" alt="Increasing column width resulting in them wrapping" width="3556" height="2060" data-path="images/column-wrap.gif" />
</Frame>

### Wrapping

**Columns** are the containing layer within **layouts** that will wrap below onto a new line when the size or number of columns exceeds the grid of the **layout** they’re in\*\*.\*\* This is most evident when viewing on a desktop the **layout** can display columns on a single line, and on mobile they will wrap, stacking vertically.

<Frame>
  <img src="https://mintcdn.com/standards/Tc_43o4c3o0PZCiL/images/column-reorder.gif?s=84729c0e0b2487615774280aaa068888" alt="Column reordering by clicking and dragging" width="3560" height="1780" data-path="images/column-reorder.gif" />
</Frame>

### Reordering + Repositioning

**Columns** can be reordered and repositioned in two ways:

1. By select + dragging the middle dot that shows over the column when hovering in-body
2. By select + dragging the **column** layer from the **contents** tab in the left sidebar

***

## Sublayouts

Almost identical to other **layouts**, **sublayouts** are designed to be added into **columns**, **dropdowns** and **menus**, as a powerful structural element. Control the **columns** within the **sublayout** to expand the ways content can be structured.

### Common uses

<Frame>
  <img src="https://mintcdn.com/standards/9xf6SX1y4oJlqvGT/images/Menuitems.png?fit=max&auto=format&n=9xf6SX1y4oJlqvGT&q=85&s=49aee28ab4d35b85c4f79f7f24367125" alt="Menu items in a horizontal grid" width="1280" height="640" data-path="images/Menuitems.png" />
</Frame>

### Menu items

To achieve horizontal menus, add **sublayouts** into the **menu**. With a **sublayout** added a customizable grid count can be set, and elements like **buttons** and **media** can be added into them.

<Frame>
  <img src="https://mintcdn.com/standards/9xf6SX1y4oJlqvGT/images/Cards.png?fit=max&auto=format&n=9xf6SX1y4oJlqvGT&q=85&s=f17ac2a83cf82c4d9e15c126de791c3f" alt="Zip file download cards" width="1280" height="640" data-path="images/Cards.png" />
</Frame>

### Cards

Turn **columns** into dynamic card designs with side-by-side elements by adding **sublayouts** into **columns**.

<Frame>
  <img src="https://mintcdn.com/standards/9xf6SX1y4oJlqvGT/images/Bento.png?fit=max&auto=format&n=9xf6SX1y4oJlqvGT&q=85&s=c749e7e5bc321fde3cd446e42ee1e299" alt="Bento grid layout" width="1280" height="640" data-path="images/Bento.png" />
</Frame>

### Bento box

Build a modular visual grid, often used on home pages for navigation.

***

## FAQ

<AccordionGroup>
  <Accordion title="Why change the name of 'rows'">
    Because ‘rows’ are now more than just a horizontal structure, they needed a more flexible name. This felt especially necessary for mobile since a ‘row’ is often a tall stack of content
  </Accordion>

  <Accordion title="Why are sublayouts necessary?">
    Sublayouts allow for content in a column to be laid out horizontally. This is common when you want 2 text boxes side-by-side in a column, or an icon beside text.
  </Accordion>
</AccordionGroup>
