Skip to content

Instantly share code, notes, and snippets.

@aliciaduffy
Created October 29, 2012 18:11
Show Gist options
  • Save aliciaduffy/3975369 to your computer and use it in GitHub Desktop.
Save aliciaduffy/3975369 to your computer and use it in GitHub Desktop.
Fix for Responsive Email gap on the right side in Iphone Mail
<!-- Add min-width: 100%; to body CSS -->
body {
min-width: 100%;
}
<!-- Add 'style="text-align: center;"' and 'align="center"' to wrapper table -->
<table id="wrapper" width="100%" height="100%" style="width: 100%; height: 100%; margin: 0 !important; text-align:center" border="0" cellspacing="0" cellpadding="0" bgcolor="#eaeff2" align="center">
<tbody>
<tr>
<td align="center">
<!-- Add 'style="text-align: left;"' to second table -->
<table id="main" style="text-align: left; width: 700px; text-align:left" border="0" cellspacing="0" cellpadding="0" bgcolor="#ffffff">
@carloschulo
Copy link

carloschulo commented Jun 11, 2021

This was the answer I was looking for!! I love you ❤️ , 9 years later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment