Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

email template position absolute?

Tags:

html-email

Is it safe to use position:absolute in a email template?

like image 814
chchrist Avatar asked Oct 28 '10 10:10

chchrist


People also ask

Can I use position absolute in email?

For Outlook we can actually use regular CSS absolute positioning, which may surprise you to have this more advanced CSS support in Outlook. However there is a catch. Outlook does support absolute positioning but only when done inside VML. So here inside conditional comments <!

What is an example of absolute position?

When you need something to be positioned in an very specific spot you would use absolute positioning. For instance you may want to have an image with an overlapping caption that always sits at the top of the picture (say 20px from the top).

Does Gmail support position absolute?

Gmail doesn't support absolute positioning in emails, but I have a situation that requires something like absolute positioning. I am using tables for layout but I need to display one <div> that is inside a <td> outside of its container table (show the <div> above the <table>).

What can I use instead of absolute position?

We can use CSS absolute positioning to overlap elements, but there's some advantages to using CSS grid instead.


1 Answers

Depends on which mail clients your users are using. Outlook for example handles position: absolute well, Thunderbird on the other hand doesn't.

I would try designing your mail-template as "normal" as possible. Tables help a lot for example (yuck).

See the following page about styling tips on HTML mails, including some position absolute advice:

  • Style In Email
like image 160
Dennis G Avatar answered Oct 22 '22 14:10

Dennis G