Skip to content

Instantly share code, notes, and snippets.

@quawn
Forked from elidickinson/max_width_email.html
Created January 16, 2014 22:04
Show Gist options
  • Save quawn/8464356 to your computer and use it in GitHub Desktop.
Save quawn/8464356 to your computer and use it in GitHub Desktop.
HTML: Max-width in Email
<!--[if mso]>
<center>
<table><tr><td width="580">
<![endif]-->
<div style="max-width:580px; margin:0 auto;">
<p>This text will be centered and constrained to 580 pixels even on Outlook which does not support max-width CSS</p>
</div>
<!--[if mso]>
</td></tr></table>
</center>
<![endif]-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment