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

# Put a Container inside a column or another Container

> Build card layouts by placing a Container inside a Row column or another Container

# Put a Container inside a column or another Container

Place a **Container** inside a column, or inside another Container, to build card layouts. The Container fits neatly inside the space you drop it into.

A Container has columns, like a **Row**, plus card styling: **Expand** / **Contain** sizing, alignment, border and box shadow.

## Before you start

* Open an email in the builder, in Design mode.
* Add a **Row** with more than one column (for example **2 Column**), or a **Container**.

## Put a Container in a Row column

1. From **Components**, drag a **Container** onto one of the Row's columns.
2. Optional: drag a second Container into the other column. The two cards sit side by side.
3. Select a Container to set its background, **Expand** / **Contain** sizing and layout.
4. To add space inside the card, select the **Column** inside it and set its **Padding**.

You can also do this in **Layers**: drag a Container onto a **Column** and it moves into that column.

## Put a Container in another Container

1. Select a Container on the canvas.
2. From **Components**, drag another **Container** into it.
3. Select the inner Container and set its layout, **Expand** / **Contain** sizing, alignment and background.

## Good to know

* **Expand** makes the card fill the column it's in. **Contain** keeps the card the size of its content. Each Container has its own setting.
* A Container inside another Container fits the width of its parent card, not the whole email.
* Space inside a Container comes from each Column's **Padding**. Rows use your brand's layout grid spacing.

## Related

* [Adjust column padding](https://docs.brandblox.app/emails/how-to-adjust-column-padding.md)
* [Add a border or shadow to a Container](https://docs.brandblox.app/emails/how-to-add-a-border-or-shadow-to-a-container.md)
* [Align a Container on desktop and mobile](https://docs.brandblox.app/emails/how-to-align-a-container-on-desktop-and-mobile.md)
* [Create an email](https://docs.brandblox.app/emails/how-to-create-an-email.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.