Created
December 2, 2014 20:22
-
-
Save aliciaduffy/13179f2b3def3c9cf236 to your computer and use it in GitHub Desktop.
responsive email columns
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mobile CSS: | |
@media only screen and (max-width: 480px) { | |
table[id=footer] table { | |
margin: 0 auto 0; | |
width: 100% !important; | |
} | |
} | |
<table border="0" cellpadding="0" cellspacing="0" id="footer" width="100%"> | |
<tbody><tr><td> | |
<table width="25%" align="left" id="col-1" cellpadding="0" style="mso-table-lspace:0pt; mso-table-rspace:0pt;"> | |
<tbody><tr><td align="left">logo here</td></tr> | |
</tbody></table> | |
<table width="45%" align="left" id="col-2" cellpadding="0"> | |
<tbody><tr><td align="right" valign="top"> | |
address here | |
</td></tr> | |
</tbody></table> | |
<table width="25%" align="right" id="col-1" cellpadding="0"style="mso-table-lspace:0pt; mso-table-rspace:0pt;"> | |
<tbody><tr><td align="left">Facebook</td><td>Twitter</td></tr> | |
</tbody></table> | |
</td></tr></tbody> | |
</table> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment