HTML Email Looks Different in Outlook? Why and How to Fix
Why your HTML email looks different in Outlook: classic Outlook for Windows renders with Word. The fix for each break, from layouts to fonts and spacing.
7 min read

On this page
If your HTML email looks different in Outlook, the cause is almost always classic Outlook for Windows. It renders email with Microsoft Word's engine instead of a browser engine, so it ignores much of the CSS that Gmail and Apple Mail handle without trouble: widths on divs, padding on most elements, background images, rounded corners. The fix is to build the email with tables and inline styles, and to give classic Outlook its own code inside conditional comments where Word can't cope.
Why does an HTML email look different in Outlook?
"Outlook" is several email apps, and they don't render HTML the same way.
- Classic Outlook for Windows (Outlook 2007 up to the classic desktop app in Microsoft 365) uses Microsoft Word to display HTML email. Word was built for documents, not web pages, so it supports only an older, limited part of HTML and CSS.
- The new Outlook for Windows is built on Outlook on the web and runs in Microsoft Edge WebView2, so it renders email like a browser.
- Outlook on the web (including Outlook.com), Outlook for Mac and the Outlook mobile apps also use browser engines, so they behave much more like Gmail or Apple Mail.
So the first question is: which Outlook? A quick test is to open the same email in Outlook on the web. If it looks right there but wrong in the Windows desktop app, you're dealing with the Word engine, and the fixes below apply.
Classic Outlook isn't going away soon. At the time of writing, Microsoft's migration guide says the new Outlook is still opt-in for organisations, recommends that admins start making it the default from March 2027, and says existing classic installations will be supported until at least 2029. Expect some business readers to stay on the Word-based version for years.
Common Outlook rendering problems and how to fix each
The layout stretches across the whole screen
A div with max-width:600px keeps an email at 600 px in most apps, but classic Outlook ignores widths on divs. The content spreads across the reading pane, and columns built with divs or floats fall apart.
Use tables for structure. If you use a fluid div for phones, wrap it in a fixed-width "ghost table" that only Outlook sees:
<!--[if mso]>
<table role="presentation" align="center" width="600" cellpadding="0" cellspacing="0" border="0"><tr><td>
<![endif]-->
<div style="max-width:600px; margin:0 auto;">
<!-- content, built with tables -->
</div>
<!--[if mso]>
</td></tr></table>
<![endif]-->Padding and margins disappear
Classic Outlook supports padding reliably only on table cells. Padding on a div is ignored, and padding and margins on images are stripped. Also, in a table row, every cell gets the same vertical padding, taken from the largest value in that row.
Put spacing on td elements, set margin:0 on paragraphs and headings so every app starts from the same point, and use a separate row or nested table when neighbouring cells need different vertical spacing.
Line height and spacing look wrong
Word applies its own line spacing, so text can sit taller or tighter than designed, and a small spacer row can grow to the height of a default line of text. Add mso-line-height-rule:exactly before line-height so Outlook uses your exact value, and give spacer cells a matching font size and line height:
<tr>
<td style="font-family:Arial, sans-serif; font-size:16px; mso-line-height-rule:exactly; line-height:24px;">
Your paragraph text
</td>
</tr>
<tr>
<td height="24" style="height:24px; font-size:24px; mso-line-height-rule:exactly; line-height:24px;"> </td>
</tr>Thin white lines appear between rows
Classic Outlook sometimes draws 1 px lines between table rows or stacked tables, most visible on a coloured background. Microsoft hasn't documented the cause; the common theory among email developers is odd pixel values in heights, font sizes and line heights. What usually helps:
- Use even numbers for heights, font sizes, line heights and padding in the affected section.
- Give the outer table the same background colour as the section, so a gap doesn't show.
- Collapse table borders and reset Outlook's table spacing in an Outlook-only style block, then retest, because it affects every table:
<!--[if mso]>
<style>
table { border-collapse:collapse; border-spacing:0; mso-table-lspace:0pt; mso-table-rspace:0pt; }
</style>
<![endif]-->Small gaps under images are a separate, simpler problem: add display:block to images that sit alone in a cell.
Images show at the wrong size
Classic Outlook ignores CSS width and height on images. A hero image exported at 1200 px for sharp phone screens shows at the full 1200 px unless the img tag has a width attribute:
<img src="https://example.com/hero.jpg" width="600" alt="New autumn coats in three colours" style="display:block; width:100%; max-width:600px; height:auto; border:0;">Windows display scaling adds a second problem. At 125% or 150% scaling, classic Outlook scales pixel values written in CSS but leaves HTML width and height attributes, and VML shapes, at their pixel size, so images and buttons can end up out of step with the layout around them. The usual fix is to declare the Office namespaces on the html tag and add this block inside the head:
<html lang="en" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<!--[if gte mso 9]>
<xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
<o:PixelsPerInch>96</o:PixelsPerInch>
</o:OfficeDocumentSettings>
</xml>
<![endif]-->
</head>It reduces scaling problems rather than removing all of them, so test at 125% if your readers use Windows laptops.
Fonts fall back to Times New Roman
Classic Outlook doesn't load web fonts. In many versions it goes further: when a web font is first in the font-family stack, it ignores your fallbacks and shows Times New Roman. Keep your normal stack inline for other apps (for example font-family:'Inter', Arial, sans-serif;) and give classic Outlook a safe stack of its own:
<!--[if mso]>
<style>
body, table, td, p, a, h1, h2, h3 { font-family:Arial, Helvetica, sans-serif !important; }
</style>
<![endif]-->Choose a fallback close in width to your brand font, so line breaks don't move much.
Background images and buttons don't show properly
Word ignores CSS background images, border-radius and padding on links. A banner with a background photo becomes a flat colour, and a button made from a styled link loses its padding and rounded corners. Both are fixed with VML, Microsoft's old vector format, placed inside conditional comments. For buttons, my free bulletproof email button generator writes the code: a rounded VML button for classic Outlook and a normal styled link for every other app.
How to test an email in Outlook before sending
- Test in classic Outlook for Windows itself; Outlook on the web uses a different renderer.
- Use a preview service such as Litmus or Email on Acid to see several Outlook versions at once.
- Send the test through your real sending platform. Mailchimp, HubSpot and others can rewrite parts of your code, and some drag-and-drop editors strip conditional comments.
- Check the email with images turned off. Classic Outlook blocks automatic picture downloads by default, so readers may see your alt text before your images.
For business audiences, I find building Outlook-first faster than patching later. That's how I code responsive HTML email templates: tables, inline styles and Outlook conditional code planned in from the start.
FAQ
Why does my email look fine in Outlook on the web but broken in the desktop app?
Outlook on the web renders email with a browser engine, while classic Outlook for Windows uses Microsoft Word. CSS that a browser understands, such as a width on a div, can be ignored by the desktop app.
Does the new Outlook for Windows fix these problems?
Mostly, yes. The new Outlook is built on Outlook on the web and renders like a browser, so the Word-specific problems in this guide don't apply to it. Classic Outlook will stay in many workplaces for years, though, so your email still needs to work in both.
Does Outlook for Mac have the same problems?
No. Outlook for Mac uses WebKit, the engine behind Apple Mail and Safari, so it renders HTML email much like Apple Mail. It doesn't need the Word-engine fixes above.
How do I add code that only classic Outlook reads?
Wrap it in a conditional comment: <!--[if mso]> before the code and <![endif]--> after it. Classic Outlook reads what's inside; every other email app treats it as a comment and skips it.
Key takeaways
- Classic Outlook for Windows renders HTML email with Microsoft Word; the new Outlook, Outlook on the web and Outlook for Mac render like browsers.
- Build the structure with tables, put padding on table cells, and use ghost tables in
<!--[if mso]>comments to hold fluid layouts at a fixed width. - Use
mso-line-height-rule:exactly, width attributes on images and an Outlook-only font stack to fix spacing, image sizes and Times New Roman. - Test in the real Windows desktop app, through your sending platform, before every important send.
Tags
- HTML Email
- Outlook Compatibility
- Email Development
- CSS

About Keshur Gojiya
Web developer and HTML email specialist with 6+ years of experience, building websites and emails for businesses, startups and agencies.
Get to know me

