- jen chan
Just want to vent about a bunch of things I've discovered on the job because I haven't seen many pages posting solutions to common Outlook rendering issues within this year:
Outlook 2013 and 2016 uses Microsoft Word rendering engine instead of a browser rendering engine. Be prepared for tables to not align properly and CSS padding to defy logic. Text alignment is completely whack if you have an image on one side and text on the other, and want it on the same row. Outlook doesn't recognize alignment that is written as an attribute of a tag
("align="). So use
Image alignment: a nightmare. Outlook ignores margins & paddings applied to the
<img>tags. From experience it seems a combination of table nesting, declaring fixed width and height in pixels, reducing the inner cell size by 2px (1 px on both sides) to account for the border that Outlook gives to images helps. Proper integration of images is discussed here, here, here and here.
Outlook doesn't support gifs. Can't fix that.
Bullet points may not render visibly, though you may have some luck putting them in a cell and increasing the font-size to 18px+. (Use
<td>•</td>instead). And even after that you need to control the next line's indentation so the text is justified against the bullet! (on the preceding cell try
style= "padding-left:20px; text-indent:-10px;") Don't use HTML lists.
Outlook puts extra spaces underneath tables. You need to mediate that by adding mail client-specific fixes like:
<!--[if (gte mso 9)|(IE)]> </td> </tr> </table> <![endif]-->
Even completed superscript tags
<sup>like this</sup>will make the rest of a sentence hop up a level.
@moonstripshas a lovely fix for that.
Outlook 2003 and 2011 are exceptions. They use a browser rendering engine.
The pre-header may show up in the body of the email.
Wrap it in:
<!--[if !gte mso 9]> <!--preheader--> <!--<![endif]->
Outlook doesn't recognize line-height unless you use
mso-line-height-rule: exactly;before mentioning line height in internal CSS.
That's basically everything I learned last 9 months. Be prepared for fixing one thing to break another aspect of the layout in a different client/browser. What else is going on in 2017?