Snippets

Jamie Scott HTML Email skeleton

Created by Jamie Scott last modified
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>INSET YOUR EMAIL TITLE TO MATCH YOUR SUBJECT LINE</title>
    <style type="text/css">
      /* --------------------------------------------------------------------------------------------------------------
      // General resets to level the playing field and tame some of the various oddities encountered in clients
       -------------------------------------------------------------------------------------------------------------- */
      /* Client-specific Styles */
      #outlook a {padding:0;} /* Force Outlook to provide a "view in browser" menu link. */
      body{width:100% !important; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; margin:0; padding:0;} 
      /* Prevent Webkit and Windows Mobile platforms from changing default font sizes.*/ 
      .ExternalClass {width:100%;} /* Force Hotmail to display emails at full width */  
      .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;}
      /* Forces Hotmail to display normal line spacing.  More on that: http://www.emailonacid.com/forum/viewthread/43/ */ 
      
      /*This table ensures your email is centered and carried the background colour of the email. Do not set this colour on the body tag or it will carry through
       when forwarding or replying to the email.*/
      #backgroundTable {
        background-color: #f5f5f5; 
        line-height: 100% !important;
        margin:0; 
        padding:0; 
        width:100% !important; 
      }

      /* Some sensible defaults for images
      Bring inline: Yes. */
      img {outline:none; text-decoration:none; -ms-interpolation-mode: bicubic;} 
      a img {border:none;} 
      .image_fix {display:block;}

      /* Yahoo paragraph fix
      Bring inline: Yes. */
      p {margin: 1em 0;}

      /* Outlook 07, 10 Padding issue fix
      Bring inline: No.*/
      table td {border-collapse: collapse;}

      /* Remove spacing around Outlook 07, 10 tables
      Bring inline: Yes */
      table { border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; }

      /* Styling your links has become much simpler with the new Yahoo.  In fact, it falls in line with the main credo of styling in email and make sure to bring 
      your styles inline.  Your link colors will be uniform across clients when brought inline.
      Bring inline: Yes. */
      a {color: #712c8f; text-decoration: none;}


      /*Styling Begins*/
      
      /*BOF Generic styling*/
      
      /* --------------------------------------------------------------------------------------------------------------
      // Generic styling for all tables, table rows and table cells.
      // Change these to suit your design
      // Web safe fonts only and include fallbacks where required
       -------------------------------------------------------------------------------------------------------------- */

      /* Change these to suit your design. Web safe fonts only */
      table, tr, td {
        color: #000000;
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
        font-size: 14px;
        line-height: 18px;  
      }
      
      /* --------------------------------------------------------------------------------------------------------------
      // As we're using line breaks instead on paragrahs let's reset the line height on paragraphs to pull the
      // paragraphs slightly closer together
       -------------------------------------------------------------------------------------------------------------- */
      table tr td br {
        line-height: 14px;  
      }
      
      /* --------------------------------------------------------------------------------------------------------------
      // The table will house your email content, set the border, border colour and width, and background colour here
       -------------------------------------------------------------------------------------------------------------- */
      #contentTable {
        border: 1px solid #eeeeee;
        background-color: #ffffff;  
      }

      
      /* --------------------------------------------------------------------------------------------------------------
      // Spacer Styling to replace 1px spacer gifs
       -------------------------------------------------------------------------------------------------------------- */

      td[height="1"] {
        mso-line-height-rule: exactly;
        line-height: 1px;
        font-size: 1px;
        height: 1px;
        margin: 0px;
        padding: 0px;
      }

      td[height="1"] div {
        line-height: 1px;
        font-size: 1px;
        height: 1px;
        display: none;
        margin: 0px;
        padding: 0px;
      }

      .space-1 {
        mso-line-height-rule: exactly;
        height: 1px;
        line-height: 1px;
        font-size: 1px;
        margin: 0px;
        padding: 0px;
      }

      td[height="15"] {
        mso-line-height-rule: exactly;
        line-height: 15px;
        font-size: 15px;
        height: 15px;
        margin: 0px;
        padding: 0px;
      }

      td[height="15"] div {
        line-height: 15px;
        font-size: 15px;
        height: 15px;
        display: none;
        margin: 0px;
        padding: 0px;
      }

      .space-15 {
        mso-line-height-rule: exactly;
        height: 15px;
        line-height: 15px;
        font-size: 15px;
        margin: 0px;
        padding: 0px;
      }


      /* --------------------------------------------------------------------------------------------------------------
      // Insert the rest of your email styling below here
       -------------------------------------------------------------------------------------------------------------- */
      
      /*Styles go here*/

      .background-blue {
        background-color: #009fda; 
      }

      .background-dark-blue {
        background-color: #00355f;
      }

      .background-grey {
        background-color: #b6b6b6;
      }

      .background-white {
        background-color: #ffffff;
      }

      .text-white {
        color: #ffffff;
      }

      .text-grey {
        color: #878787;
      }
          
      
      /*EOF Generic styling*/
      
      /* --------------------------------------------------------------------------------------------------------------
      // The below styling is the styling for the header and footer disclaimers. Leave in place.
       -------------------------------------------------------------------------------------------------------------- */

      /*BOF Disclaimer styling*/
      #topDisclaimer, #topDisclaimer td {
        color: #999999; 
        font-family: Arial, Helvetica, sans-serif; 
        font-size: 10px; 
        line-height: 16px;
      }
          
      #bottomDisclaimer, #bottomDisclaimer td {
        color: #999999; 
        font-family: Arial, Helvetica, sans-serif; 
        font-size: 11px; 
        line-height: 16px;
      }
      /*EOF Disclaimer styling*/
      
      /*Styling Ends*/
    </style>
  </head>
  <body>
    <!--BOF Wrapper Table-->
    <table cellpadding="0" cellspacing="0" width="100%" border="0" id="backgroundTable" bgcolor="#f5f5f5">
      <tr>
        <td valign="top" align="center"> 
          <table cellpadding="0" cellspacing="0" border="0" align="center" width="600">
            <!--BOF Top Disclaimer-->
            <tr>
              <td width="600" valign="top" align="center">
                <table cellpadding="0" cellspacing="0" border="0" align="center" width="600" id="topDisclaimer">
                  <tr>
                    <td valign="top" align="center" width="600">
                      <br />
                      <!-- This is the generic header for all emails. This is at the top to provide comfort to those on a mailing list who are unaware where the 
                      email came from. The header also provides the Adestra short codes for the view in browser link. Adestra 
                      will pick up on its presence and convert the links to the correct code. DO NOT EDIT THIS-->
                      You received this newsletter because you are currently on the Dods Parliamentary Communications Limited 
                      mailing list.<br /> 
                      Email not displaying correctly? [*link.webversion('View it in your browser')*]
                      <br />
                    </td>
                  </tr>
                </table>
              </td>
            </tr>
            <!--EOF Top Disclaimer-->
            <!--BOF Spacer Row providing some space between the top of the email and the top disclaimer-->
            <tr>
              <td valign="top" align="center" width="600" height="16" class="space-15">
                <div>&nbsp;</div>
              </td>
            </tr>
            <!--EOF Spacer Row-->
            <!--BOF Email Content-->
            <tr>
              <td valign="top" align="center" width="600">
                <table cellpadding="0" cellspacing="0" border="0" align="center" width="600" id="contentTable">
                    <tr>
                      <td valign="top" align="center" width="598">
                        <!--START EDITING HERE-->
                        
                        
                        <!--END EDITING HERE-->
                      </td>    
                    </tr>
                </table>
              </td>
            </tr>
            <!--EOF Email Content-->
            <!--BOF Spacer Row providing some space between the bottom of the email and the bottom disclaimer-->
            <tr>
              <td valign="top" align="center" width="600" height="16" class="space-15">
                <div>&nbsp;</div>
              </td>
            </tr>
            <!--EOF Spacer Row-->
            <!--BOF Bottom Disclaimer-->
            <tr>
              <td width="600" valign="top" align="center">
                <table cellpadding="0" cellspacing="0" border="0" align="center" width="600" id="bottomDisclaimer">
                    <tr>
                        <td valign="top" align="center" width="598">
                            <!-- This is the generic footer for all emails. This provides the copyright information and registration information for Dods. 
                              DO NOT EDIT THIS -->
                              &copy; 2016 Dods Parliamentary Communications Ltd<br /> Registered in England under Company number 01262354.<br /> Registered Office: 
                              21 Dartmouth Street, London SW1H 9BP
                              <br />If you no longer wish to receive our mails, please [*link.unsub('unsubscribe')*].
                        </td>
                      </tr>
                  </table>
              </td>
            </tr>
            <!--BOF Spacer Row providing some space between the bottom of the email and the body-->
            <tr>
              <td valign="top" align="center" width="600" height="16" class="space-15">
                <div>&nbsp;</div>
              </td>
            </tr>
            <!--EOF Spacer Row-->
          </table>
          <!--EOF Bottom Disclaimer-->
        </td>
      </tr>
    </table>  
    <!--EOF Wrapper Table-->
  </body>
</html>  
    

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.