> ## 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.

# Align a Container differently on desktop and mobile

> Set one alignment for desktop and another for mobile

# Align a Container differently on desktop and mobile

Line up a card differently on each screen size, for example on the left on desktop and in the centre on mobile.

## Before you start

* Open an email in the builder. See [Find your way around the email builder](https://docs.brandblox.app/emails/how-to-find-the-email-editor-panels.md).
* Alignment only works when **Container Sizing** is set to **Contain**. With **Expand**, the Container fills the column, so there's nothing to align.

## Steps

1. Select the Container on the canvas. **Settings** opens.
2. If **Container Sizing** is **Expand**, change it to **Contain**.
3. Switch the canvas to **Desktop**. See [Switch between desktop and mobile canvas](https://docs.brandblox.app/emails/how-to-switch-between-desktop-and-mobile-canvas.md).
4. Under **Horizontal Alignment**, choose **Left**, **Center** or **Right**.
5. Switch the canvas to **Mobile**.
6. Choose the alignment you want on mobile.

Desktop and mobile each keep their own alignment, just like text alignment.

## Good to know

* The **Horizontal Alignment** buttons are greyed out while **Container Sizing** is **Expand**.

## Related

* [Switch between desktop and mobile canvas](https://docs.brandblox.app/emails/how-to-switch-between-desktop-and-mobile-canvas.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)
* [Nest a Container in a column](https://docs.brandblox.app/emails/how-to-nest-a-container-in-a-column.md)
* [Adjust column padding](https://docs.brandblox.app/emails/how-to-adjust-column-padding.md)


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