Is there a way to create the effect of a container inside a container in a template? | Community
Skip to main content
March 15, 2017
Question

Is there a way to create the effect of a container inside a container in a template?

  • March 15, 2017
  • 1 reply
  • 1187 views

Hi,

Is there a way to create the effect of a container inside a container in a template?

I have several modules that I need to group together, but I need to add a background colour behind all of those modules.

Example:

I have 3 separate modules; module 1, module 2 & module 3. They all have red backgrounds. I need to wrap those 3 red modules inside another table and that outer table needs to have a red background too. I want to eliminate the chance of a white line appearing between those 3 different modules. If all 3 modules are wrapped in same container with a red background colour - if the line does appear, you won't see it, because the background is red. I've read that you can't have 2 containers - but is there another way to achieve this?

Any help would be appreciated.

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Grégoire_Miche2
Level 10
March 15, 2017

Hi Liisa,

This question belongs to Products. Please move it there, and you will get more answers

And no, you cannot have nested containers, not even 2 containers in 1 templates. Read this Email editor 2.0 is leaving room for a v2.1

Usually, lines appear on tables on some older email clients because you have forgotten to add cellpadding="0" cellspacing="0" border="0" attributes to the table as well as proper CSS to also remove any border.

You can also set the background color of your container with 1 variable.

-Greg