Skip to content

Instantly share code, notes, and snippets.

@robinsloan
Last active December 28, 2022 03:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robinsloan/5858cab09c10ba2e627dbd2697833f27 to your computer and use it in GitHub Desktop.
Save robinsloan/5858cab09c10ba2e627dbd2697833f27 to your computer and use it in GitHub Desktop.
Just a super simple HTML email template
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta content="width=device-width" name="viewport" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="generator" content="The very hands of Sloan"/>
<base href="https://fat.gold/" />
<style type="text/css">
* {
box-sizing: border-box;
}
html {
font-size: 17px;
min-height: 100%;
}
body {
margin: 0 0 0 0;
padding: 0 0 0 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
line-height: 25px;
-webkit-text-size-adjust: none;
width: 100%;
height: 100%;
position: relative;
overflow: scroll;
min-height: 100%;
color: #111;
}
div.content {
width: 600px;
max-width: 100%;
margin: 0 auto 0 auto;
padding: 25px 8px 25px 8px;
}
h2 {
margin: 0 auto 25px auto;
line-height: 25px;
font-weight: normal;
text-transform: uppercase;
letter-spacing: 1px;
text-align: center;
}
p {
font-size: 17px;
line-height: 25px;
margin: 0 0 25px 0;
padding: 0 0 0 0;
}
p.meta {
color: #333;
border-radius: 8px;
background-color: #eee;
padding: 17px;
}
p.meta a {
color: #333;
}
p.picture {
margin: 0 0 0 0;
}
img {
display: block;
border: none;
width: 100%;
max-width: 100%;
margin: 0 0 0 0;
min-height: 60px;
}
p.caption {
font-size: 13px;
line-height: 25px;
text-align: right;
color: #999;
}
p.caption a,
p.caption a:link,
p.caption a:visited,
p.caption a:hover,
p.caption a:active {
color: #999;
}
hr {
height:2px;
border: none;
border-width:0;
color: #FF007F;
background-color: #FF007F;
padding: 0 0 0 0;
margin: 0 0 25px 0;
}
table {
margin: 0 0 25px 0;
}
table, tr, td {
border: none;
border-collapse: collapse;
padding: 0 0 0 0;
}
td img {
width: 100%;
margin: auto;
}
blockquote {
font-style: italic;
}
</style>
</head>
<body>
<div class="content">
__YIELD__
<p class="meta">You can always <a href="*|UNSUB|*">unsubscribe instantly</a>.</p>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment