Skip to content

Instantly share code, notes, and snippets.

@chipcullen
Created January 14, 2013 15:15
Show Gist options
  • Save chipcullen/4530696 to your computer and use it in GitHub Desktop.
Save chipcullen/4530696 to your computer and use it in GitHub Desktop.
An HTML email centered layout - first described here: http://chipcullen.com/an-html-email-centered-layout/
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title>email Title</title></head>
<body style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0;padding-top: 0; padding-right: 0; padding-bottom: 0; padding-left: 0;"><table width="100%" border="0" cellspacing="10" cellpadding="0" class="wrapper"><tr><td align="center" valign="top" style="text-align:center;"><table border="0" cellspacing="0" cellpadding="10" class="main" style="text-align: left; margin-left: auto; margin-right: auto;" width="600">
<!-- email contents go here -->
</table></td></tr></table></body></html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment