Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
HTML Email Template: max-width hack for MS Outlook
<!--[if (gte mso 9)|(IE)]>
<center>
<table>
<tr>
<td width="600">
<![endif]-->
<div style="max-width: 600px; margin: 0 auto;">
<p>This text will be centered and constrained to 600 pixels even on Outlook which does not support max-width CSS</p>
</div>
<!--[if mso]>
</td>
</tr>
</table>
</center>
<![endif]-->
@AitorRodriguez990

This comment has been minimized.

Copy link

commented Sep 13, 2016

This solution only works on Outlook 2000?

@rawa29

This comment has been minimized.

Copy link

commented Oct 3, 2016

Not working on MS Outlook 2016 for me. :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.