Agent Wranglers

EML-43Recommended

Build layout that Outlook can show

Build the outer layout with tables and fixed widths where classic Outlook on Windows needs them, and use modern CSS only as an extra.

How to do it

Classic Outlook on Windows renders with the Word engine and ignores most layout CSS, such as display: flex, grid and many max-width rules. Use a centred table of about 600 pixels for the frame. Use conditional comments, <!--[if mso]>, for Outlook-only fixes. A framework such as MJML can generate this markup. Prove it renders as Test in the clients your readers use says.

Examples

HTML example

<!--[if mso]>
<table role="presentation" width="600" align="center" cellpadding="0" cellspacing="0"><tr><td>
<![endif]-->
<div style="max-width:600px; margin:0 auto;">
  <p>Content here.</p>
</div>
<!--[if mso]>
</td></tr></table>
<![endif]-->

How to check

Send a test to Windows Outlook and a web client. The layout holds in both, with no overlapping or collapsed columns.

Sources

For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/email/layout-and-accessibility/layout-tables">Agent Wranglers email playbook</a>. In code you write, add a comment next to it with the same link.