Skip to main content
Skip table of contents

Responsive email

Responsive layouts

Adaptation for devices in emails works according to several basic rules:

Columns inside a row are always moved to a new line on mobile, regardless of the element's width, and take up the full width of the parent element.

Example:

Layout 1 Columns 1 and 2 have a width of 50%

Layout 2 Columns 1 and 2 have a width of 15%

image-20260106-115131.png

Desktop

image-20260106-115150.png

Mobile

image-20260106-115217.png

Structure

As we can see on mobile, the column stretches to the full width of the parent container.

To prevent the column from moving to a new line on mobile, we need to use a group container.

image-20260106-115404.png

Structure

image-20260106-115416.png

Desktop

image-20260106-115459.png

Mobile

Best practice

To create spacing between columns after they move to a new line on mobile, you need to use an additional column as a gap between the columns.

Example: As we can see in the example, the column has a width of 0% but has a height (implemented using padding) of 20px.

image-20260106-115555.png

image-20260106-115604.png

Desktop

image-20260106-115614.png

Mobile

We can also implement spacing between columns on desktop. To do this, we need to add a column between the columns.

Example:

The gap column between the 2 main columns has a width of 5%

Column 1 and column 2 have a width of 47.5%

The height of the gap column is 0 (since no padding is set)
47.5% + 5% + 47.5% = 100%

image-20260106-115731.png
image-20260106-115825.png

Desktop

image-20260106-115837.png

Mobile

Similarly, you can create spacing on both mobile and desktop by setting both the width and height.

Images

The only responsive feature available for images is the MJML attribute ‘fluid-on-mobile’. Setting this to true will ensure that the image takes up the full width on mobile. This attribute is available via Activator UI as seen here:

image-20260106-115940.png

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.