forked from leemunroe/responsive-html-email-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathemail.html
More file actions
282 lines (242 loc) · 5.48 KB
/
email.html
File metadata and controls
282 lines (242 loc) · 5.48 KB
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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
<!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>Really Simple HTML Email Template</title>
<style>
/* -------------------------------------
GLOBAL
------------------------------------- */
* {
margin:0;
padding:0;
font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
font-size: 100%;
line-height: 1.6;
}
img {
max-width: 100%;
}
body {
-webkit-font-smoothing:antialiased;
-webkit-text-size-adjust:none;
width: 100%!important;
height: 100%;
}
/* -------------------------------------
ELEMENTS
------------------------------------- */
a {
color: #348eda;
}
.btn-primary{
text-decoration:none;
color: #FFF;
background-color: #348eda;
border:solid #348eda;
border-width:10px 20px;
line-height:2;
font-weight:bold;
margin-right:10px;
text-align:center;
cursor:pointer;
display: inline-block;
border-radius: 25px;
}
.btn-secondary {
text-decoration:none;
color: #FFF;
background-color: #aaa;
border:solid #aaa;
border-width:10px 20px;
line-height:2;
font-weight:bold;
margin-right:10px;
text-align:center;
cursor:pointer;
display: inline-block;
border-radius: 25px;
}
.last {
margin-bottom: 0;
}
.first{
margin-top: 0;
}
.padding{
padding:10px 0;
}
/* -------------------------------------
BODY
------------------------------------- */
table.body-wrap {
width: 100%;
padding: 20px;
}
table.body-wrap .container{
border: 1px solid #f0f0f0;
}
/* -------------------------------------
FOOTER
------------------------------------- */
table.footer-wrap {
width: 100%;
clear:both!important;
}
.footer-wrap .container p {
font-size:12px;
color:#666;
}
table.footer-wrap a{
color: #999;
}
/* -------------------------------------
TYPOGRAPHY
------------------------------------- */
h1,h2,h3{
font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; line-height: 1.1; margin-bottom:15px; color:#000;
margin: 40px 0 10px;
line-height: 1.2;
font-weight:200;
}
h1 {
font-size: 36px;
}
h2 {
font-size: 28px;
text-align:center;
}
h3 {
font-size: 22px;
}
p, ul, ol {
margin-bottom: 10px;
font-weight: normal;
font-size:15px;
}
ul li, ol li {
margin-left:5px;
list-style-position: inside;
}
strong{
font-size:18px;
font-weight:normal;
}
/* ---------------------------------------------------
RESPONSIVENESS
Nuke it from orbit. It's the only way to be sure.
------------------------------------------------------ */
/* Set a max-width, and make it display as block so it will automatically stretch to that width, but will also shrink down on a phone or something */
.container {
display:block!important;
max-width:600px!important;
margin:0 auto!important; /* makes it centered */
clear:both!important;
}
/* Set the padding on the td rather than the div for Outlook compatibility */
.body-wrap .container{
padding:20px;
}
/* This should also be a block element, so that it will fill 100% of the .container */
.content {
max-width:600px;
margin:0 auto;
display:block;
}
/* Let's make sure tables in the content area are 100% wide */
.content table {
width: 100%;
}
.center{
text-align:center;
}
.logo{
display:inline-block;
width:399px;
height:85px;
max-width:90%;
}
.footnote{
font-size:14px;
color:#444;
}
@media all and (min-resolution: 192dpi), (-webkit-min-device-pixel-ratio: 2), (min--moz-device-pixel-ratio: 2), (-o-min-device-pixel-ratio: 2/1), (min-device-pixel-ratio: 2), (min-resolution: 2dppx){
.logo{
background-image:url(chartblocks@2x.png);
background-size:100% auto;
background-repeat:no-repeat;
}
.logo img{
visibility:hidden;
}
}
</style>
</head>
<body bgcolor="#f6f6f6">
<!-- body -->
<table class="body-wrap">
<tr>
<td></td>
<td class="container" bgcolor="#FFFFFF">
<div class="content">
<table>
<tr>
<td class="center">
<div class="logo">
<img src="chartblocks.png">
</div>
</td>
</tr>
<tr>
<td>
<h2>Activate your account</h2>
<p>Hi Sam,
<p>Thanks for creating a ChartBlocks account. To use the email address test@test.com to log in to ChartBlocks please verify your email address by clicking the button below.</p>
<table>
<tr>
<td class="padding center">
<p><a href="https://github.com/leemunroe/html-email-template" class="btn-primary">Verify my email address</a></p>
</td>
</tr>
</table>
<p>Thanks,<br><strong>Sam</strong><br> ChartBlocks Support.</p>
<p><a href="http://twitter.com/chartblocks">Follow @chartblocks on Twitter</a>
</td>
</tr>
<tr>
<td>
<p class="footnote">We hope you find ChartBlocks easy to use but if you have any problems drop an email to support@chartblocks.com and we'll get straight back to you.</p>
</td>
</tr>
</table>
</div>
<!-- /content -->
</td>
<td></td>
</tr>
</table>
<!-- /body -->
<!-- footer -->
<table class="footer-wrap">
<tr>
<td></td>
<td class="container">
<!-- content -->
<div class="content">
<table>
<tr>
<td align="center">
<p>Don't like these annoying emails? <a href="#"><unsubscribe>Unsubscribe</unsubscribe></a>.
</p>
</td>
</tr>
</table>
</div><!-- /content -->
</td>
<td></td>
</tr>
</table>
<!-- /footer -->
</body>
</html>