Fixing Outlook HTML Email Issues — Common Problems & Solutions
A practical guide to Outlook HTML email bugs: broken layouts, missing backgrounds, unsupported CSS, and the Outlook-safe fallbacks FigMail generates for them.
If you build HTML email for long enough, you learn that "it looks fine in my browser" means very little. Outlook for Windows is the client most likely to break a layout that works everywhere else, and its bugs follow a few clear patterns. This guide walks through the most common Outlook HTML email issues, explains why they happen, and shows the fixes that hold up in production.
Why Outlook renders email differently
Most email clients render HTML with a browser engine. Apple Mail uses WebKit, and Gmail and the newer Outlook apps run in a browser. Classic Outlook for Windows (the desktop versions from Outlook 2007 onward) is different: it renders email with Microsoft Word's layout engine.
Word was built to lay out documents, not web pages. So a large part of modern CSS is either ignored or only partly supported. That one fact explains almost every Outlook email bug you will meet:
- Layout CSS such as
max-width,float, flexbox and grid is unreliable or ignored. - Spacing through
marginandpaddingbehaves differently depending on the element it sits on. - CSS background images and gradients are not rendered on most elements.
- Decorative CSS such as
border-radiusandbox-shadowis dropped. - Web fonts are not loaded, and a bad font stack can fall back to Times New Roman.
It is also worth knowing which Outlook you are dealing with. "Outlook" covers several products with very different rendering:
| Client | Rendering engine | Typical behavior |
|---|---|---|
| Outlook 2007–2019, Microsoft 365 desktop (Windows) | Microsoft Word | Most bugs in this guide |
| New Outlook for Windows | Browser-based | Close to modern webmail |
| Outlook on the web (Outlook.com) | Browser | Good support, with some CSS rewriting |
| Outlook for Mac | WebKit | Similar to Apple Mail |
| Outlook for iOS and Android | Native/web view | Generally good support |
When people talk about Outlook email rendering problems, they almost always mean the Word-based desktop versions. Many companies still run them, so any email that has to look professional needs to account for them.
Problem 1: The layout breaks or stretches to full width
Symptom: Your 600px email spreads across the whole Outlook reading pane, or columns that sit side by side in other clients stack, overlap or push past their container.
Cause: Outlook ignores max-width, and it does not support float, flexbox or CSS grid. A layout built with div elements and modern CSS has nothing Outlook can hold onto.
Fix: Build the structure with tables, and wrap the main container in an Outlook-only table with a fixed width. Outlook understands MSO conditional comments, which other clients treat as ordinary comments and skip.
<!--[if (gte mso 9)|(IE)]>
<table cellpadding="0" cellspacing="0" border="0" width="600"><tr><td>
<![endif]-->
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="max-width: 600px;">
<tr>
<td>
<!-- Email content -->
</td>
</tr>
</table>
<!--[if (gte mso 9)|(IE)]>
</td></tr></table>
<![endif]-->
Modern clients use the fluid table with max-width. Outlook sees the fixed 600px "ghost table" and keeps the email at the right width.
Multi-column rows
The same idea works for columns. A common responsive pattern uses inline-block divs so the columns stack on mobile, plus an Outlook-only table that places them side by side on desktop:
<!--[if (gte mso 9)|(IE)]>
<table border="0" cellspacing="0" cellpadding="0"><tr><td width="300">
<![endif]-->
<div style="display: inline-block; width: 300px; vertical-align: top;">
<!-- Column 1 -->
</div><!--[if (gte mso 9)|(IE)]></td><td width="300"><![endif]--><div style="display: inline-block; width: 300px; vertical-align: top;">
<!-- Column 2 -->
</div>
<!--[if (gte mso 9)|(IE)]>
</td></tr></table>
<![endif]-->
Two details matter here. Keep the column widths in the conditional table equal to the div widths, and avoid whitespace between the closing </div> and the next column, because inline-block elements treat whitespace as a visible gap.
Avoid colspan and rowspan
Merged cells are another source of broken grids in some Outlook versions. When a section needs a different column structure, nest a new table inside a cell instead of using colspan or rowspan.
Problem 2: Spacing is wrong, doubled or missing
Symptom: Gaps between sections look different in Outlook, paragraphs pick up extra space, or margins you set have no effect at all.
Cause: Outlook's support for margin is inconsistent, it adds its own default spacing to p and heading tags, and it handles padding on div elements poorly.
Fix: Put spacing on table cells.
- Use
paddingontdelements for space inside sections. This is the most reliable spacing method across clients. - Avoid
marginondiv,pandimg.margin: 0 autofor centering a table is the usual safe exception. - Reset table defaults on every table:
cellpadding="0" cellspacing="0" border="0". - For vertical gaps that are not inside a cell, use a spacer row with an explicit height.
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td style="padding: 32px 24px;">
<!-- Content -->
</td>
</tr>
</table>
Fixed heights plus padding
A subtle bug comes from giving a cell both a fixed height and vertical padding. The final height is the sum of the two, and Outlook may render it differently from other clients. For blocks with text or a background, set the size with padding only and let the height be automatic. Save fixed heights for spacers.
Problem 3: Background images and gradients disappear
Symptom: A hero banner with text over a photo shows only plain text on white in Outlook. Gradient buttons and sections turn into flat blocks, or lose their background completely.
Cause: Outlook's Word engine does not render CSS background-image or CSS gradients on most elements.
Fix: Layer your fallbacks so every client gets something sensible:
- Set a solid
bgcoloron the cell. Every client shows this color. - Add the HTML
backgroundattribute on thetdwith the image URL. Some Outlook versions read it. - Add CSS
backgroundfor modern clients. - For gradients, add a
background-colorthat matches the overall tone of the gradient, so Outlook shows a close solid color instead of nothing.
<td bgcolor="#1E3A5F"
background="https://example.com/hero.jpg"
style="background: url('https://example.com/hero.jpg') center / cover no-repeat;
background-color: #1E3A5F; padding: 60px 24px;">
<!-- Headline and button -->
</td>
Make sure your text has enough contrast against the fallback color alone. If the copy is white, the fallback should be dark.
When you need the image in desktop Outlook: VML
The most reliable way to show a background image behind live text in Word-based Outlook is VML (Vector Markup Language), an old Microsoft format that Outlook still renders. You place a VML shape, such as v:rect with a v:fill of type frame, inside an MSO conditional comment, and put your content in a v:textbox.
<!--[if gte mso 9]>
<v:rect xmlns:v="urn:schemas-microsoft-com:vml" fill="true" stroke="false"
style="width:600px;height:300px;">
<v:fill type="frame" src="https://example.com/hero.jpg" color="#1E3A5F" />
<v:textbox inset="0,0,0,0">
<![endif]-->
<div>
<!-- Headline and button -->
</div>
<!--[if gte mso 9]>
</v:textbox>
</v:rect>
<![endif]-->
VML needs fixed pixel dimensions, it adds a fair amount of code, and it is easy to get wrong. Use it where a background image really carries the design. In many cases, a solid color fallback, or a flattened image with the text kept as live HTML below it, is the simpler and safer choice.
Problem 4: Rounded corners, shadows and buttons
Symptom: Rounded buttons become square, shadows vanish, and padded link buttons are only clickable on the text itself.
Cause: Outlook does not support border-radius or box-shadow, and it ignores most padding on inline a elements.
Fix: Build buttons as a table cell with a background color, and put the link inside it:
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center" bgcolor="#2563EB" style="border-radius: 6px;">
<a href="https://example.com"
style="display: block; padding: 14px 28px; font-family: Arial, sans-serif;
font-size: 16px; line-height: 20px; color: #FFFFFF;
text-decoration: none; white-space: nowrap;">
Shop now
</a>
</td>
</tr>
</table>
In Outlook this button will have square corners, which is usually an acceptable trade-off. white-space: nowrap keeps the label on one line, and display: block on the link makes more of the button clickable in clients that support it. If rounded corners in Outlook are a hard requirement, a VML v:roundrect can draw them, at the cost of more code to maintain.
Do not rely on shadows for anything important. If a card needs visual separation, use a border or a background color change instead.
Problem 5: Fonts fall back to Times New Roman
Symptom: Your clean sans-serif headline shows up in a serif font in Outlook.
Cause: Word-based Outlook does not load web fonts. When it meets a font stack it cannot resolve, especially when the custom font name is in the inline font-family, it can fall back to Times New Roman instead of the next font in the stack.
Fix:
- Always end your font stack with a web-safe font, such as Arial, Helvetica, Verdana or Georgia, and a generic family.
- Load custom fonts with
@importor alinktag for the clients that support them. - Keep the inline
font-familyon Outlook-sensitive elements to web-safe fonts, and apply the custom font through a class in the<style>block that Outlook will ignore. - Check line heights. Outlook can render
line-heightdifferently, so set it explicitly in pixels on text elements.
<style>
.heading { font-family: 'Montserrat', Arial, sans-serif !important; }
</style>
<div class="heading" style="font-family: Arial, sans-serif; font-size: 28px; line-height: 34px;">
Spring collection is here
</div>
Outlook shows Arial. Clients that load web fonts show Montserrat.
Problem 6: Images that blur, stretch or leave gaps
Symptom: Images appear at their full file size instead of the intended width, retina images look huge, or thin gaps appear under images.
Cause: Outlook does not reliably respect CSS width or max-width on images, so it falls back to the image's actual pixel size unless the HTML width attribute says otherwise. Images are also inline elements by default, which leaves space for text descenders below them.
Fix:
- Always set the
widthattribute in pixels to the intended display width, for examplewidth="600"for a 1200px retina image. - Add
style="display: block;"to remove the gap under images. - Add
border="0"so linked images do not get a border. - Use
max-widthin the style for fluid behavior in modern clients. - Include the Office settings block in the
<head>so Outlook allows PNG images and uses a standard pixel density:
<!--[if gte mso 9]>
<xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
<o:PixelsPerInch>96</o:PixelsPerInch>
</o:OfficeDocumentSettings>
</xml>
<![endif]-->
The PixelsPerInch setting helps with a well-known problem where Windows display scaling makes Outlook resize images and widths unevenly.
Problem 7: Dark mode surprises
Outlook's dark mode, like other clients, may change your colors. Light backgrounds can turn dark and dark text can turn light, but images stay as they are. The classic result is a black logo on a transparent background that disappears on a dark background.
Practical defenses:
- Use transparent PNGs for logos and icons, and add a light stroke or outline to dark logos so they stay visible on dark backgrounds.
- Avoid black text on a transparent background. Put text on a cell with an explicit background color.
- Test your key colors in both light and dark themes before you send.
We cover this in more depth in our HTML email compatibility guide.
Outlook CSS support: a quick reference
This table summarizes Outlook CSS support in the Word-based desktop versions, with the usual workaround. Support varies by version, so treat it as a starting point and test.
| Feature | Desktop Outlook (Windows) | Workaround |
|---|---|---|
max-width |
Not supported | Fixed-width MSO ghost table |
float, flexbox, grid |
Not supported | Tables, inline-block plus MSO tables |
margin |
Inconsistent | padding on td, spacer rows |
padding on div |
Unreliable | padding on td |
background-image (CSS) |
Not supported on most elements | bgcolor, background attribute, VML |
| Gradients | Not supported | Solid fallback color, VML |
border-radius |
Not supported | Accept square corners or VML |
box-shadow |
Not supported | Borders or color contrast |
| Web fonts | Not loaded | Web-safe fallback stack |
| Media queries | Not supported | Desktop-first layout that works without them |
colspan / rowspan |
Can break layouts | Nested tables |
A testing checklist for Outlook
Even well-built code needs a check in a real client before a big send. A simple routine:
- Test the right versions. Cover at least one Word-based desktop Outlook as well as Outlook on the web and mobile. Use a real install or an email testing service that renders actual clients.
- Check the width. The email should hold its intended width in a wide reading pane.
- Check every background. Confirm that fallback colors appear and the text stays readable without the image.
- Check fonts and line heights. Look for Times New Roman and for lines that are too tight or too loose.
- Check buttons. Make sure they are visible, readable and clickable.
- Check dark mode. Look at logos, icons and any text on a transparent background.
- Check at different display scaling. Windows scaling above 100% exposes width and image sizing bugs.
How FigMail handles Outlook
FigMail is a Figma plugin that converts a Figma frame into table-based HTML email. Many of the fixes in this guide are part of the rules its AI generator follows, so you do not have to add them by hand:
- Table-based structure. Layouts are built with nested tables, not divs or flexbox, and merged cells are avoided.
- MSO conditional wrappers. The main container gets a fixed-width Outlook table, and multi-column rows use Outlook conditional tables so columns stay side by side in desktop Outlook and stack on mobile.
- No margins. Spacing is done with padding on table cells and spacer elements.
- Background fallbacks. Background colors are set with
bgcolor, background images get the HTMLbackgroundattribute alongside the CSS, and gradients get a matching solid fallback color. - Office settings in the head. The
AllowPNGandPixelsPerInchblock is included. - Font fallbacks. You can use Google Fonts, and FigMail sets up web-safe fallback stacks so Outlook does not drop to a default serif.
Two honest caveats. First, FigMail's output follows graceful degradation: rounded corners and shadows will be square or absent in desktop Outlook, as described above. Second, complex background effects behind live text are the hardest case for Outlook in any workflow, so check those sections in a real Outlook client before you send. FigMail's preview lets you switch between desktop, mobile and simulated dark mode views and compare the result with your Figma design, but it is not an Outlook renderer.
You also get better output when the design itself is email-friendly. Use Auto Layout instead of absolute positioning, keep the width around 600px, avoid overlapping layers and negative spacing, and build buttons with Auto Layout rather than a rectangle with text on top. Our best practices page lists these in one place, and how to design HTML emails in Figma covers the design side in more detail.
Next steps
Outlook bugs are predictable once you know they come from the Word engine: build with tables, keep spacing in cells, give every background a fallback, use web-safe font stacks, and test in a real client.
If you design your emails in Figma, you can install the FigMail plugin and try it on one of your own frames. The free plan includes 3 generations a month, and paid plans are on the pricing page. To see what happens between your frame and the final HTML, read how it works, or browse the documentation for preview, translation and export options.
Turn your Figma frame into HTML email
Install the FigMail plugin and get your first emails converted free.
Get the Figma plugin