Back to List

HTML Email Rendering Issue with Outlook 2013

Melanie Lenaghan Melanie Lenaghan  |  
Sep 13, 2013

Designing HTML emails for Outlook has always been a challenge given that Outlook uses the Microsoft Word rendering engine to display its emails.  I always knew to follow the basics, such as avoid background images and CSS positioning such as float, margin and padding.  As cluttered as the code looked, nested tables became my friend.  This doesn’t seem so bad, right?  These simple tips kept my emails rendering properly throughout the Outlook 2007 and 2010 updates.

Unfortunately the release of 2013 was not as kind.  Although the rendering is very similar to past updates, I was faced with an unexpected and unpleasant spacing issue between images that my usual “display: block” was not going to fix.

Every table cell previewed in Outlook 2013 contains a line height defined by Outlook.  Therefore empty table cells and cells containing images smaller than roughly 15 pixels display a minimum height of 15 pixels regardless of what the cell’s height attribute is set to.  This can cause white gaps between images in your email.

Luckily there is a fix.  The issue can be solved by declaring a height and line-height to the table cell where that height equals the image height contained within that cell.  The new code would look something like this:

<td style="height: 12px; line-height: 12px;"><img src="../image.jpg" style="display: block;" width="600" height="12" /></td>

Although I am grateful to have found a fix for this particular issue I have to admit I dream of the day where all HTML emails render the same no matter which email client or ISP.  Something tells me that probably will not be anytime soon so until then, I continue to build my library of helpful hints as new versions of both email clients and ISPs continue to be released.

Email MarketingSalesforce Marketing Cloud

When we faced this Outlook 2013 problem in Instacut , we have solved it also by setting the line-height of the parent td equal to the image height of the contained img when it is smaller than 20px. Apparently it could have been 15px, but at least the 20px setting seemed to have passed our own tests.
1/27/2015 4:13:44 PM

Thanks Mel! This helped alot. Cheers!
11/5/2014 1:41:06 AM

Dave R
Very useful tip thanks, this has been a tricky issue, nice to find a solution! Given that Outlook has been going backwards, rather than forwards in terms of HTML email support, I think we'll all keep dreaming of that day when email clients render our HTML emails the same!
9/30/2014 12:49:30 AM

Thank you for the trick. But an who has a parent doesn't work with this method.
5/21/2014 5:20:47 AM

Kyle Jackson
Melanie, thank you so much for this tip! I've been racking my brain trying to figure out just what the hell was wrong with my HTML emails in Outlook 2013. This was most helpful!
4/9/2014 5:58:32 PM

 Security code

Related Content

WI Kentico User Group
Aug 09, 2016
Location: Fox Valley Technical College - Appleton, WI
Blog Article
Kentico Distance Calculation Web Part
Daniel MaleyDaniel Maley  |  
Aug 26, 2016
When displaying a list of locations on your website, it is often helpful to the user to know how far away they are from each of the items in the list. The Basic Repeater with Distance Calculation Web Part allows you to easily add distance and duration to a list of locations. This web part is a...
Blog Article
​Supporting Gmail's New Security Changes with Salesforce Marketing Cloud
Logan RomineLogan Romine  |  
Jun 14, 2016
Have you logged on to Gmail lately and seen emails with a red lock, similar to the image below?   If so, then you’re not alone! Google’s Gmail announced on Safer Internet Day (Feb, 9th 2016), they are tightening their application security.  Solution to Gmail’s Red Lock Gmail has always...
Blog Article
UX Matters: Beginning the Journey toward UX Awareness
Briana BettinBriana Bettin  |  
May 02, 2016
You’ve seen the value of UX, but where can your company even begin to start implementing it? There’s so much to be done! Never fear, here’s a rundown of some tips for getting started and tools to use.Start small. Find something little to test on your site and start there to get yourself...
Blog Article
UX Matters: Speak Their Language - Content that Captivates
Briana BettinBriana Bettin  |  
Apr 01, 2016
Users want to get what they’re looking for from your site, plain and simple. They want your content, but most importantly, they want that content to make sense to them. You definitely need to understand your audience to craft a great experience for them, but what are some of the ways that...