I am trying to create an email marketing template that has a text box slightly overlapping an image box above. For the text box I am using an HTML module and have set the position: relative with a margin-top: -10% and a background-color:#7eb8ba.
In Gmail the position: relative does not hold and the text box sits flush under the image.
Any suggestions?
Below is a screenshot of what I want it to look like:
@lwest126 I found this answer to a similar question, where the answer was to use CSS on the module. I’m not sure if that’s what you’re already doing, or if it helps, but it’s the best I could find.
As far as I know and tested things around, negative values, positioning and z-index values are not supported in most of e-mail browsers like Gmail or MS Outlook. Most of the email templating support have apple devices. Also when templating e-mails, all the css should be written inside the style=“” attributes. Most of the coding solutions for drag and drop e-mail templates can be made only with the usage of tables.
For your example above I managed to code up a solution that works in most cases:
I am trying to create an email marketing template that has a text box slightly overlapping an image box above. For the text box I am using an HTML module and have set the position: relative with a margin-top: -10% and a background-color:#7eb8ba.
In Gmail the position: relative does not hold and the text box sits flush under the image.
Any suggestions?
Below is a screenshot of what I want it to look like: