Skip to content

Newsletter Template

Yuwen Song edited this page Aug 6, 2014 · 2 revisions
<title>devo.ps Email Template</title> <style> /* ------------------------------------- GLOBAL ------------------------------------- */ * { margin: 0; padding: 0; font-family: "Open Sans", "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: #1f8dd6;
  text-decoration: none;
}

.btn-primary {
  text-decoration: none;
  color: #fff;
  background-color: #50cd84;
  border: 1px solid #48b876;
  text-transform: uppercase;
  line-height: 2;
  font-size: 11px;
  padding: 10px 60px;
  margin-right: 10px;
  text-align: center;
  cursor: pointer;
  display: inline-block;
  border-radius: 2px;
}

.btn-secondary {
  text-decoration: none;
  color: #fff;
  background-color: #1f8dd6;
  border: 1px solid #1b7ec0;
  text-transform: uppercase;
  font-size: 11px;
  line-height: 2;
  padding: 8px 40px;
  margin-right: 10px;
  text-align: center;
  cursor: pointer;
  display: inline-block;
  border-radius: 2px;
}

.last {
  margin-bottom: 0;
}

.first {
  margin-top: 0;
}

.padding {
  padding: 10px 0;
}


/* -------------------------------------
    BODY
------------------------------------- */
table.body-wrap {
  width: 100%;
  padding: 20px;
}

table.body-wrap .container {
  color: #a5adb3;
}


/* -------------------------------------
    FOOTER
------------------------------------- */
table.footer-wrap {
  width: 100%;	
  clear: both!important;
}

.footer-wrap .container p {
  font-size: 12px;
  color: #a5adb3;
  
}

table.footer-wrap a {
  color: #a5adb3;
  text-decoration: underline;
}


/* -------------------------------------
    TYPOGRAPHY
------------------------------------- */
h1, h2, h3 {
  color: #203442;
  line-height: 1.1;
  margin-bottom: 15px;
  margin: 40px 0 10px;
  line-height: 1.2;
  font-weight: 200;
}

h1 {
  font-size: 36px;
}
h2 {
  font-size: 28px;
}
h3 {
  font-size: 22px;
}

p, ul, ol {
  margin-bottom: 10px;
  font-weight: normal;
  font-size: 14px;
}

ul li, ol li {
  margin-left: 5px;
  list-style-position: inside;
}

hr {
  border: none;
  height: 1px;
  background-color: #ddd;
}

/* ---------------------------------------------------
    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%;
}
</style>
    <div class="content">
      <table>
        <tbody>
          <tr>
            <td>
              <table>
                <tbody>
                  <tr>
                    <td style="width: 33.3333%; text-align: left;"><a href="http://devo.ps">devo.ps</a></td>
                    <td style="width: 33.3333%; text-align: center;"><span class="title">title</span></td>
                    <td style="width: 33.3333%; text-align: right;"><a href="#">view in browser</a></td>
                  </tr>
                </tbody>
              </table>
              <h1>Unappalled by the massacre made upon then during the night</h1>
              <figure style="margin: 20px 0;">
                <img src="img/banner.png" alt="devo.ps rocks!" style="width:
                600px;">
              </figure>
              <p>Content I have hinted that I would often jerk poor Queequeg from
                between the whale of both.<a href="#">But this was not the only
                  jamming jeopardy</a> he was exposed to.Unapplalled by treatures
                swarmed round it like bees in a beehive.</p>
              <table>
                <tbody>
                  <tr>
                    <td class="padding" style="text-align: center;">
                      <p><a href="#" class="btn-primary">Read More</a></p>
                    </td>
                  </tr>
                </tbody>
              </table>
              <hr>
              <table>
                <tbody>
                  <tr>
                    <td style="width: 40%;"><figure style="width: 200px; height: 200px; background-color: #f3f3f3;"><img src="" alt="" style="width: 200px; height: 200px;"></figure></td>
                    <td style="width: 60%;">
                      <h2>Unappalled by the massacre made upon</h2>
                      <p>Content I have hinted that I would often jerk poor
                        Queenqueg from beteewn the whale of both.</p>
                      <table>
                        <tbody>
                          <tr>
                            <td class="padding">
                              <p><a href="#" class="btn-secondary">Read More</a></p>
                            </td>
                          </tr>
                        </tbody>
                      </table>
                    </td>
                  </tr>
                </tbody>
              </table>
              <hr>
              <table>
                <tbody>
                  <tr>
                    <td style="width: 60%;">
                      <h2>Unappalled by the massacre made upon</h2>
                      <p>Content I have hinted that I would often jerk poor
                        Queenqueg from beteewn the whale of both.</p>
                      <table>
                        <tbody>
                          <tr>
                            <td class="padding">
                              <p><a href="#" class="btn-secondary">Read More</a></p>
                            </td>
                          </tr>
                        </tbody>
                      </table>
                    </td>
                    <td style="width: 40%;"><figure style="width: 200px; height: 200px; background-color: #f3f3f3;"><img src="" alt="" style="width: 200px; height: 200px;"></figure></td>
                  </tr>
                </tbody>
              </table>
              <hr>
              <table>
                <tbody>
                  <tr>
                    <td style="width: 40%;"><figure style="width: 200px; height: 200px; background-color: #f3f3f3;"><img src="" alt="" style="width: 200px; height: 200px;"></figure></td>
                    <td style="width: 60%;">
                      <h2>Unappalled by the massacre made upon</h2>
                      <p>Content I have hinted that I would often jerk poor
                        Queenqueg from beteewn the whale of both.</p>
                      <table>
                        <tbody>
                          <tr>
                            <td class="padding">
                              <p><a href="#" class="btn-secondary">Read More</a></p>
                            </td>
                          </tr>
                        </tbody>
                      </table>
                    </td>
                  </tr>
                </tbody>
              </table>
            </td>
          </tr>
        </tbody>
      </table>
    </div>

  </td>
  <td></td>
</tr>

(©) 2014 devo.ps.

Don't like these annoying emails? Unsubscribe.

Twitter RSS

Clone this wiki locally