Created
December 22, 2016 22:54
-
-
Save Tecayehuatl/f92a37061fd13bf2634630da737877a8 to your computer and use it in GitHub Desktop.
Email boilerplate
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<title>Example</title> | |
<style type="text/css"> | |
/***************** | |
*HOTMAIL WEB FIX LINE HEIGHT | |
*****************/ | |
.ExternalClass * {line-height: 100%} | |
/***************** | |
*OUTLOOK | |
*****************/ | |
table{border-spacing: 0; mso-table-lspace: 0pt; mso-table-rspace: 0pt; border-collapse: collapse;} | |
td{border-spacing: 0; mso-table-lspace: 0pt; mso-table-rspace: 0pt;} | |
/***************** | |
*GENERAL | |
*****************/ | |
* {-webkit-text-size-adjust: none;} | |
body {margin: 0px;} | |
/****************** | |
* CUSTOM Desktop Styles | |
*******************/ | |
/***************** | |
*MOBILE | |
*****************/ | |
@media only screen and (max-width: 600px){ | |
/****************** | |
*GENERAL STYLES | |
*******************/ | |
body{ min-width: 320px; margin: 0;} | |
.hide-mobile{ display: none !important;} | |
.show-for-small{ display: block !important; overflow : visible !important; width: auto !important; max-height: inherit !important;} | |
.no-float{float: none !important;} | |
.block{display: block;} | |
.resize-image{width: 100%; height: auto;} | |
.center-image{display: block; margin: 0 auto;} | |
.padding-10-10{padding: 10px 10px !important;} | |
.padding-10-20{padding: 10px 20px !important;} | |
.padding-20-10{padding: 20px 10px !important;} | |
.padding-20-20{padding: 20px 20px !important;} | |
.padding-sides-10{padding-right: 10px !important; padding-left: 10px !important;} | |
.padding-sides-20{padding-right: 20px !important; padding-left: 20px !important;} | |
.no-padding-left{padding-left: 0 !important;} | |
.no-padding-right{padding-right: 0 !important;} | |
.no-padding-top{padding-top: 0 !important;} | |
.no-padding-bottom{padding-bottom: 0 !important;} | |
.no-padding{padding: 0 !important;} | |
.text-left{ text-align: left !important;} | |
.text-center{ text-align: center !important;} | |
.text-right{ text-align: right !important;} | |
.w100{ width: 100% !important; min-width: initial !important;} | |
.w90{ width: 90% !important; min-width: initial !important;} | |
.w80{ width: 80% !important; min-width: initial !important;} | |
.w70{ width: 70% !important; min-width: initial !important;} | |
.w60{ width: 60% !important; min-width: initial !important;} | |
.w50{ width: 50% !important; min-width: initial !important;} | |
/****************** | |
* CUSTOM Mobile Styles | |
*******************/ | |
} | |
</style> | |
</head> | |
<body> | |
<!-- WRAPPER --> | |
<table class="w100" border="0" cellpadding="0" cellspacing="0" width="100%" align="center" bgcolor="ffffff" style="width: 100%;"> | |
<tbody> | |
<tr> | |
<td width="100%" align="center" style="width: 100%;"> | |
<!-- CONTAINER --> | |
<table class="w100" border="0" cellpadding="0" cellspacing="0" width="600" align="center" bgcolor="ffffff" style="width: 600px; min-width: 600px;"> | |
<tbody> | |
<tr> | |
<td align="center"> | |
Container, main container... | |
</td> | |
</tr> | |
</tbody> | |
</table> | |
<!-- /CONTAINER --> | |
</td> | |
</tr> | |
</tbody> | |
</table> | |
<!-- /WRAPPER --> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment