-
Notifications
You must be signed in to change notification settings - Fork 0
/
responsive-email-template.html
186 lines (163 loc) · 8.27 KB
/
responsive-email-template.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Responsive Email Template</title>
<style type="text/css" media="screen">
/* Global
-------------------------------------------------------------- */
* { margin: 0; padding: 0; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
body { -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none; width: 100% !important; }
body, #wrapper { background-color: #d8ebf1; }
table { border-collapse: collapse !important; mso-table-lspace: 0pt; mso-table-rspace: 0pt; }
a, img { border-style: none; }
/* Sections
-------------------------------------------------------------- */
/* Pre-Header */
#pre-header { padding: 15px; background-color: #333333; color: #cccccc; font-size: 14px; text-align: center; }
#pre-header a { color: #cccccc; }
/* Header */
#header { padding: 15px; background-color: #249faf; text-align: left; color: #ffffff; }
#header h1 { font-weight: 400; font-size: 38px; text-align: center; }
#header h1 a { color: #ffffff; }
#header h1 img { width: 250px; height: 50px; }
/* Content */
#content { padding: 15px; background-color: #ffffff; text-align: left; }
#content h2 { font-weight: 200; font-size: 27px; margin-bottom: 10px; color: #1e8491; }
#content h3 { font-weight: 200; font-size: 23px; margin-bottom: 10px; }
#content h3 small { font-size: 60%; color: #6f6f6f; }
#content p { margin-bottom: 10px; font-size: 14px; line-height: 1.6; }
#content img { max-width: 100%; }
#content .btn { text-decoration: none; color: #ffffff; background-color: #666666; padding: 10px 24px; font-weight: bold; margin-right: 10px; text-align: center; display: inline-block; }
#content .col { margin-bottom: 15px; }
/* Footer */
#footer { padding: 15px; background-color: #cccccc; color: #333333; font-size: 14px; text-align: center; }
/* Post-Footer */
#post-footer { padding: 15px; background-color: #333333; color: #cccccc; font-size: 14px; text-align: center; }
#post-footer a { color: #cccccc; }
/* Responsiveness
-------------------------------------------------------------- */
@media only screen and (max-width: 600px) {
body, #wrapper { background-color: #ffffff; }
table[id="container"] { width:100% !important; }
td[id="pre-header"] { display: none; }
td[id="header"] { background-color: #cc9999 !important; }
td[id="header"] h1 img { width: 85% !important; height: auto !important; }
td[id="content"] h2 { font-size: 32px !important; color: #cc9999 !important; }
td[id="content"] p { font-size: 16px !important; }
td[id="content"] img { content: url("http://placehold.it/600x400/cc9999/ffffff"); }
td[id="content"] .btn { display: block !important; border-radius: 5px; }
table[class="row"] { width:100% !important; }
table[class="col"] { width:100% !important; }
}
</style>
</head>
<body>
<center>
<table id="wrapper" border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">
<tr>
<td align="center" valign="top">
<table id="container" border="0" cellpadding="0" cellspacing="0" width="600">
<!-- Pre-Header ============================================================================= -->
<tr>
<td id="pre-header">
Ut enim ad <a href="https://github.com/cyrilsuzat/responsive-email-template">minim veniam</a>
</td>
</tr>
<!-- /Pre-Header ============================================================================ -->
<!-- Header ================================================================================= -->
<tr>
<td id="header">
<!-- Row -->
<table border="0" cellpadding="0" cellspacing="0" width="570" class="row">
<tr>
<td align="center">
<h1><a href="https://github.com/cyrilsuzat/responsive-email-template"><img src="http://placehold.it/500x100/333333/ffffff?text=LOGO" alt="LOGO" /></a></h1>
</td>
</tr>
</table>
<!-- /Row -->
</td>
</tr>
<!-- /Header ================================================================================ -->
<!-- Content ================================================================================ -->
<tr>
<td id="content">
<!-- Row -->
<table border="0" cellpadding="0" cellspacing="0" width="570" class="row">
<tr>
<td>
<h2>Claritas est etiam,</h2>
<p>
Processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est
notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum
formas humanitatis per seacula quarta decima et quinta decima.
</p>
<p><a href="https://github.com/cyrilsuzat/responsive-email-template"><img src="http://placehold.it/600x250/c5e2ea/ffffff" alt="" /></a></p>
</td>
</tr>
</table>
<!-- /Row -->
<!-- Row -->
<table border="0" cellpadding="0" cellspacing="0" width="570" class="row">
<tr>
<td>
<!-- Left Column -->
<table align="left" border="0" cellpadding="0" cellspacing="0" width="270" class="col">
<tr>
<td>
<h3>Lorem <small>Left Column</small></h3>
<p>
Consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
ex ea commodo consequat.
</p>
<a href="https://github.com/cyrilsuzat/responsive-email-template" class="btn">Click Me!</a>
</td>
</tr>
</table>
<!-- /Left Column -->
<!-- Right Column -->
<table align="right" border="0" cellpadding="0" cellspacing="0" width="270" class="col">
<tr>
<td>
<h3>Ipsum <small>Right Column</small></h3>
<p>
Consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
ex ea commodo consequat.
</p>
<a href="https://github.com/cyrilsuzat/responsive-email-template" class="btn">Click Me!</a>
</td>
</tr>
</table>
<!-- /Right Column -->
</td>
</tr>
</table>
<!-- /Row -->
</td>
</tr>
<!-- /Content =============================================================================== -->
<!-- Footer ================================================================================= -->
<tr>
<td id="footer">
Footer
</td>
</tr>
<!-- /Footer ================================================================================ -->
<!-- Post-Footer ============================================================================ -->
<tr>
<td id="post-footer">
Post-Footer
</td>
</tr>
<!-- /Post-Footer =========================================================================== -->
</table>
</td>
</tr>
</table>
</center>
</body>
</html>