DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
  1. DZone
  2. Coding
  3. Languages
  4. Responsive HTML Email Template

Responsive HTML Email Template

Andrey Prikaznov user avatar by
Andrey Prikaznov
·
Jan. 03, 15 · Interview
Like (0)
Save
Tweet
Share
16.90K Views

Join the DZone community and get the full member experience.

Join For Free

responsive html email template

html email templates and email alerts are one of the integral parts of almost any site. these letters of registration, newsletters, and even letters in order to attract new customers (online marketing). moreover, more than 50% of the letters being opened on mobile devices, a trend that has been growing steadily the past few years. recently was designated another tendency – responsive template, and, as you know, the importance of responsive styles in the templates of letters is quite high. today we have prepared for you a responsive template that you can use in your projects. this template is perfectly supported by most email clients and services.

live demo

structure

the template consists of several parts: invisible introduction part (just in case), main header, content part, where you can put your texts, images and buttons, and footer part.

as this is the email template, all styles will be placed in the head section of our template. we used reset css styles in our template (normalize.css). besides of main styles, there are custom custom client-specific styles including styles for different online clients and other framework hacks and overrides. here are the main styles:

/* reset */
article,aside,details,figcaption,figure,footer,header,hgroup,nav,section,summary{display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}audio:not([controls]){display:none;height:0}[hidden]{display:none}html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}html,button,input,select,textarea{font-family:sans-serif}body{margin:0}a:focus{outline:thin dotted}a:active,a:hover{outline:0}h1{font-size:2em;margin:0 0.67em 0}h2{font-size:1.5em;margin:0 0 .83em 0}h3{font-size:1.17em;margin:1em 0}h4{font-size:1em;margin:1.33em 0}h5{font-size:.83em;margin:1.67em 0}h6{font-size:.75em;margin:2.33em 0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}blockquote{margin:1em 40px}dfn{font-style:italic}mark{background:#ff0;color:#000}p,pre{margin:1em 0}code,kbd,pre,samp{font-family:monospace,serif;_font-family:'courier new',monospace;font-size:1em}pre{white-space:pre;white-space:pre-wrap;word-wrap:break-word}q{quotes:none}q:before,q:after{content:'';content:none}small{font-size:75%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}dl,menu,ol,ul{margin:1em 0}dd{margin:0 0 0 40px}menu,ol,ul{padding:0 0 0 40px}nav ul,nav ol{list-style:none;list-style-image:none}img{border:0;-ms-interpolation-mode:bicubic}svg:not(:root){overflow:hidden}figure{margin:0}form{margin:0}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0;white-space:normal;*margin-left:-7px}button,input,select,textarea{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle}button,input{line-height:normal}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer;*overflow:visible}button[disabled],input[disabled]{cursor:default}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0;*height:13px;*width:13px}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0}

/* custom client-specific styles including styles for different online clients */
.readmsgbody{width:100%;} .externalclass{width:100%;} /* hotmail / outlook.com */
.externalclass, .externalclass p, .externalclass span, .externalclass font, .externalclass td, .externalclass div{line-height:100%;} /* hotmail / outlook.com */
table, td{mso-table-lspace:0pt; mso-table-rspace:0pt;} /* outlook */
#outlook a{padding:0;} /* outlook */
img{-ms-interpolation-mode: bicubic;display:block;outline:none; text-decoration:none;} /* iexplorer */
body, table, td, p, a, li, blockquote{-ms-text-size-adjust:100%; -webkit-text-size-adjust:100%; font-weight:normal!important;}
.externalclass td[class="ecxflexiblecontainerbox"] h3 {padding-top: 10px !important;} /* hotmail */

/* email template styles */
h1{display:block;font-size:26px;font-style:normal;font-weight:normal;line-height:100%;}
h2{display:block;font-size:20px;font-style:normal;font-weight:normal;line-height:120%;}
h3{display:block;font-size:17px;font-style:normal;font-weight:normal;line-height:110%;}
h4{display:block;font-size:18px;font-style:italic;font-weight:normal;line-height:100%;}
.flexibleimage{height:auto;}
table[class=flexiblecontainercelldivider] {padding-bottom:0 !important;padding-top:0 !important;}

body, #bodytbl{background-color:#e1e1e1;}
#emailheader{background-color:#e1e1e1;}
#emailbody{background-color:#ffffff;}
#emailfooter{background-color:#e1e1e1;}
.textcontent {color:#8b8b8b; font-family:helvetica; font-size:16px; line-height:125%; text-align:left;}
.textcontent a{color:#205478; text-decoration:underline;}
.emailbutton{background-color:#205478; border-collapse:separate;}
.buttoncontent{color:#ffffff; font-family:helvetica; font-size:18px; font-weight:bold; line-height:100%; padding:15px; text-align:center;}
.buttoncontent a{color:#ffffff; display:block; text-decoration:none!important; border:0!important;}
#invisibleintroduction {display:none;display:none !important;} /* hide the introduction text */

/* other framework hacks and overrides */
span[class=ios-color-hack] a {color:#275100!important;text-decoration:none!important;} /* remove all link colors in ios (below are duplicates based on the color preference) */
span[class=ios-color-hack2] a {color:#205478!important;text-decoration:none!important;}
span[class=ios-color-hack3] a {color:#8b8b8b!important;text-decoration:none!important;}
/* phones and sms */
.a[href^="tel"], a[href^="sms"] {text-decoration:none!important;color:#606060!important;pointer-events:none!important;cursor:default!important;}
.mobile_link a[href^="tel"], .mobile_link a[href^="sms"] {text-decoration:none!important;color:#606060!important;pointer-events:auto!important;cursor:default!important;}

in order to make the template really responsive, we add the following styles:

/* responsive styles */
@media only screen and (max-width: 480px){
  body{width:100% !important; min-width:100% !important;}
  table[id="emailheader"], table[id="emailbody"], table[id="emailfooter"], table[class="flexiblecontainer"] {width:100% !important;}
  td[class="flexiblecontainerbox"], td[class="flexiblecontainerbox"] table {display: block;width: 100%;text-align: left;}
  td[class="imagecontent"] img {height:auto !important; width:100% !important; max-width:100% !important;}
  img[class="flexibleimage"]{height:auto !important; width:100% !important;max-width:100% !important;}
  img[class="flexibleimagesmall"]{height:auto !important; width:auto !important;}
  table[class="flexiblecontainerboxnext"]{padding-top: 10px !important;}
  table[class="emailbutton"]{width:100% !important;}
  td[class="buttoncontent"]{padding:0 !important;}
  td[class="buttoncontent"] a{padding:15px !important;}
}

now, we can start with html. to be friendly with most email clients, we decided to make table-based layout. here is the main layout with the hidden section, the header and the footer:

<!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">
    <meta http-equiv="x-ua-compatible" content="ie=edge,chrome=1">
    <title>responsive html email template</title>
    <style type="text/css">
      ... here are all our css styles ...
    </style>
    <!--
      ms outlook custom styles
    -->
    <!--[if mso 12]>
      <style type="text/css">
        .flexiblecontainer{display:block !important; width:100% !important;}
      </style>
    <![endif]-->
    <!--[if mso 14]>
      <style type="text/css">
        .flexiblecontainer{display:block !important; width:100% !important;}
      </style>
    <![endif]-->
  </head>
  <body bgcolor="#e1e1e1" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0">

    <center style="background-color:#e1e1e1;">
      <table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="bodytbl" style="table-layout: fixed;max-width:100% !important;width: 100% !important;min-width: 100% !important;">
        <tr>
          <td align="center" valign="top" id="bodycell">

            <table bgcolor="#e1e1e1" border="0" cellpadding="0" cellspacing="0" width="500" id="emailheader">
              <tr>
                <td align="center" valign="top">

                  <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                      <td align="center" valign="top">

                        <table border="0" cellpadding="10" cellspacing="0" width="500" class="flexiblecontainer">
                          <tr>
                            <td valign="top" width="500" class="flexiblecontainercell">

                              <table align="left" border="0" cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                  <td align="left" valign="middle" id="invisibleintroduction" class="flexiblecontainerbox" style="display:none;display:none !important;">
                                    <table border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width:100%;">
                                      <tr>
                                        <td align="left" class="textcontent">
                                          <div style="font-family:helvetica,arial,sans-serif;font-size:13px;color:#828282;text-align:center;line-height:120%;">
                                            here you can put short introduction of your email template.
                                          </div>
                                        </td>
                                      </tr>
                                    </table>
                                  </td>
                                  <td align="right" valign="middle" class="flexiblecontainerbox">
                                    <table border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width:100%;">
                                      <tr>
                                        <td align="left" class="textcontent">
                                          <div style="font-family:helvetica,arial,sans-serif;font-size:13px;color:#828282;text-align:center;line-height:120%;">
                                            if you have any troubles, you can see this email <a href="#" target="_blank" style="text-decoration:none;border-bottom:1px solid #828282;color:#828282;"><span style="color:#828282;">in your browser</span></a>.
                                          </div>
                                        </td>
                                      </tr>
                                    </table>
                                  </td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                        </table>

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

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

            <table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="500" id="emailbody">

              <tr>
                <td align="center" valign="top">
                  <table border="0" cellpadding="0" cellspacing="0" width="100%" style="color:#ffffff;" bgcolor="#3498db">
                    <tr>
                      <td align="center" valign="top">
                        <table border="0" cellpadding="0" cellspacing="0" width="500" class="flexiblecontainer">
                          <tr>
                            <td align="center" valign="top" width="500" class="flexiblecontainercell">
                              <table border="0" cellpadding="30" cellspacing="0" width="100%">
                                <tr>
                                  <td align="center" valign="top" class="textcontent">
                                    <h1 style="color:#ffffff;line-height:100%;font-family:helvetica,arial,sans-serif;font-size:35px;font-weight:normal;margin-bottom:5px;text-align:center;">main header</h1>
                                    <h2 style="text-align:center;font-weight:normal;font-family:helvetica,arial,sans-serif;font-size:23px;margin-bottom:10px;color:#205478;line-height:135%;">sub header</h2>
                                    <div style="text-align:center;font-family:helvetica,arial,sans-serif;font-size:15px;margin-bottom:0;color:#ffffff;line-height:135%;">lorem ipsum dolor sit amet, consectetur adipiscing elit. integer vitae ligula tempus, vestibulum erat ac, blandit arcu. pellentesque mattis laoreet nulla, eget varius dui pharetra euismod. ut posuere.</div>
                                  </td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>

              <tr>
                <td align="center" valign="top">
                  <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                      <td align="center" valign="top">
                        <table border="0" cellpadding="0" cellspacing="0" width="500" class="flexiblecontainer">
                          <tr>
                            <td align="center" valign="top" width="500" class="flexiblecontainercell">

                              <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                  <td valign="top" class="imagecontent">
                                    <img src="big.png" width="500" class="flexibleimage" style="max-width:500px;width:100%;display:block;" alt="text" title="text" />
                                  </td>
                                </tr>
                              </table>

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

              .. here will be our custom content sections ..

            </table>

            <!-- footer -->
            <table bgcolor="#e1e1e1" border="0" cellpadding="0" cellspacing="0" width="500" id="emailfooter">
              <tr>
                <td align="center" valign="top">
                  <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                      <td align="center" valign="top">
                        <table border="0" cellpadding="0" cellspacing="0" width="500" class="flexiblecontainer">
                          <tr>
                            <td align="center" valign="top" width="500" class="flexiblecontainercell">
                              <table border="0" cellpadding="30" cellspacing="0" width="100%">
                                <tr>
                                  <td valign="top" bgcolor="#e1e1e1">

                                    <div style="font-family:helvetica,arial,sans-serif;font-size:13px;color:#828282;text-align:center;line-height:120%;">
                                    <div>copyright © 2014. all rights reserved.</div>
                                      <div>if you don't want to receive these emails from us in the future, please <a href="#" target="_blank" style="text-decoration:none;color:#828282;"><span style="color:#828282;">unsubscribe</span></a></div>
                                    </div>

                                  </td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
            <!-- // end of footer -->

          </td>
        </tr>
      </table>
    </center>
  </body>
</html>

the main content is a set of additional table rows with our custom content (please be ready for a huge code section):

<tr>
  <td align="center" valign="top">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr>
        <td align="center" valign="top">
          <table border="0" cellpadding="0" cellspacing="0" width="500" class="flexiblecontainer">
            <tr>
              <td align="center" valign="top" width="500" class="flexiblecontainercell">
                <table border="0" cellpadding="30" cellspacing="0" width="100%">
                  <tr>
                    <td align="center" valign="top">

                      <table border="0" cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                          <td valign="top" class="textcontent">
                            <h3 style="color:#5f5f5f;line-height:125%;font-family:helvetica,arial,sans-serif;font-size:20px;font-weight:normal;margin-top:0;margin-bottom:3px;text-align:left;">box title</h3>
                            <div style="text-align:left;font-family:helvetica,arial,sans-serif;font-size:15px;margin-bottom:0;margin-top:3px;color:#5f5f5f;line-height:135%;">lorem ipsum dolor sit amet, consectetur adipiscing elit. integer vitae ligula tempus, vestibulum erat ac, blandit arcu. pellentesque mattis laoreet nulla, eget varius dui pharetra euismod. ut posuere.</div>
                          </td>
                        </tr>
                      </table>

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

<!-- divider -->
<tr>
  <td align="center" valign="top">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr>
        <td align="center" valign="top">
          <table border="0" cellpadding="0" cellspacing="0" width="500" class="flexiblecontainer">
            <tr>
              <td align="center" valign="top" width="500" class="flexiblecontainercell">
                <table class="flexiblecontainercelldivider" border="0" cellpadding="30" cellspacing="0" width="100%">
                  <tr>
                    <td align="center" valign="top" style="padding-top:0px;padding-bottom:0px;">
                      <table border="0" cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                          <td align="center" valign="top" style="border-top:1px solid #c8c8c8;"></td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                </table>
              </td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
  </td>
</tr>
<!-- // end of divider -->

<tr>
  <td align="center" valign="top">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr>
        <td align="center" valign="top">
          <table border="0" cellpadding="30" cellspacing="0" width="500" class="flexiblecontainer">
            <tr>
              <td valign="top" width="500" class="flexiblecontainercell">

                <table align="left" border="0" cellpadding="0" cellspacing="0" width="100%">
                  <tr>
                    <td align="left" valign="top" class="flexiblecontainerbox">
                      <table border="0" cellpadding="0" cellspacing="0" width="210" style="max-width:100%;">
                        <tr>
                          <td align="left" class="textcontent">
                            <img src="mid.png" width="210" class="flexibleimage" style="max-width:100%;" alt="text" title="text" />
                          </td>
                        </tr>
                      </table>
                    </td>
                    <td align="right" valign="top" class="flexiblecontainerbox">
                      <table class="flexiblecontainerboxnext" border="0" cellpadding="0" cellspacing="0" width="210" style="max-width:100%;">
                        <tr>
                          <td align="left" class="textcontent">
                            <h3 style="color:#5f5f5f;line-height:125%;font-family:helvetica,arial,sans-serif;font-size:20px;font-weight:normal;margin-top:0;margin-bottom:3px;text-align:left;">box header</h3>
                            <div style="text-align:left;font-family:helvetica,arial,sans-serif;font-size:15px;margin-bottom:0;color:#5f5f5f;line-height:135%;">lorem ipsum dolor sit amet, consectetur adipiscing elit. maecenas augue urna, pharetra vitae nullam.</div>
                          </td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                </table>

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

<!-- divider -->
<tr>
  <td align="center" valign="top">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr>
        <td align="center" valign="top">
          <table border="0" cellpadding="0" cellspacing="0" width="500" class="flexiblecontainer">
            <tr>
              <td align="center" valign="top" width="500" class="flexiblecontainercell">
                <table class="flexiblecontainercelldivider" border="0" cellpadding="30" cellspacing="0" width="100%">
                  <tr>
                    <td align="center" valign="top" style="padding-top:0px;padding-bottom:0px;">
                      <table border="0" cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                          <td align="center" valign="top" style="border-top:1px solid #c8c8c8;"></td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                </table>
              </td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
  </td>
</tr>
<!-- // end of divider -->

<tr>
  <td align="center" valign="top">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr>
        <td align="center" valign="top">
          <table border="0" cellpadding="30" cellspacing="0" width="500" class="flexiblecontainer">
            <tr>
              <td valign="top" width="500" class="flexiblecontainercell">

                <table align="left" border="0" cellpadding="0" cellspacing="0" width="100%">
                  <tr>
                    <td align="left" valign="top" class="flexiblecontainerbox">
                      <table border="0" cellpadding="0" cellspacing="0" width="210" style="max-width:100%;">
                        <tr>
                          <td align="left" class="textcontent">
                            <h3 style="color:#5f5f5f;line-height:125%;font-family:helvetica,arial,sans-serif;font-size:20px;font-weight:normal;margin-top:0;margin-bottom:3px;text-align:left;">box header</h3>
                            <div style="text-align:left;font-family:helvetica,arial,sans-serif;font-size:15px;margin-bottom:0;color:#5f5f5f;line-height:135%;">lorem ipsum dolor sit amet, consectetur adipiscing elit. maecenas augue urna, pharetra vitae nullam.</div>
                          </td>
                        </tr>
                      </table>
                    </td>
                    <td align="right" valign="top" class="flexiblecontainerbox">
                      <table class="flexiblecontainerboxnext" border="0" cellpadding="0" cellspacing="0" width="210" style="max-width:100%;">
                        <tr>
                          <td align="left" class="textcontent">
                            <img src="mid.png" width="210" class="flexibleimage" style="max-width:100%;" alt="text" title="text" />
                          </td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                </table>

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

<tr>
  <td align="center" valign="top">
    <table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#f8f8f8">
      <tr>
        <td align="center" valign="top">
          <table border="0" cellpadding="0" cellspacing="0" width="500" class="flexiblecontainer">
            <tr>
              <td align="center" valign="top" width="500" class="flexiblecontainercell">
                <table border="0" cellpadding="30" cellspacing="0" width="100%">
                  <tr>
                    <td align="center" valign="top">

                      <table border="0" cellpadding="0" cellspacing="0" width="100%" style="margin-bottom:20px;">
                        <tr>
                          <td valign="top" class="textcontent">
                            <h3 style="color:#5f5f5f;line-height:125%;font-family:helvetica,arial,sans-serif;font-size:20px;font-weight:normal;margin-top:0;margin-bottom:3px;text-align:left;">box title</h3>
                            <div style="text-align:left;font-family:helvetica,arial,sans-serif;font-size:15px;margin-bottom:0;color:#5f5f5f;line-height:135%;">lorem ipsum dolor sit amet, consectetur adipiscing elit. integer vitae ligula tempus, vestibulum erat ac, blandit arcu. pellentesque mattis laoreet nulla, eget varius dui pharetra euismod. ut posuere.</div>
                          </td>
                        </tr>
                      </table>

                      <table border="0" cellpadding="0" cellspacing="0" width="50%" class="emailbutton" style="background-color: #3498db;">
                        <tr>
                          <td align="center" valign="middle" class="buttoncontent" style="padding-top:15px;padding-bottom:15px;padding-right:15px;padding-left:15px;">
                            <a style="color:#ffffff;text-decoration:none;font-family:helvetica,arial,sans-serif;font-size:20px;line-height:135%;" href="#" target="_blank">button / submit</a>
                          </td>
                        </tr>
                      </table>

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

<tr>
  <td align="center" valign="top">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr>
        <td align="center" valign="top">
          <table border="0" cellpadding="30" cellspacing="0" width="500" class="flexiblecontainer">
            <tr>
              <td valign="top" width="500" class="flexiblecontainercell">

                <table align="left" border="0" cellpadding="0" cellspacing="0" width="100%">
                  <tr>
                    <td align="left" valign="top" class="flexiblecontainerbox">
                      <table border="0" cellpadding="0" cellspacing="0" width="210" style="max-width: 100%;">
                        <tr>
                          <td align="left" class="textcontent">
                            <h3 style="color:#5f5f5f;line-height:125%;font-family:helvetica,arial,sans-serif;font-size:20px;font-weight:normal;margin-top:0;margin-bottom:3px;text-align:left;">box header</h3>
                            <div style="text-align:left;font-family:helvetica,arial,sans-serif;font-size:15px;margin-bottom:0;color:#5f5f5f;line-height:135%;">lorem ipsum dolor sit amet, consectetur adipiscing elit. maecenas augue urna, pharetra vitae nullam.</div>
                          </td>
                        </tr>
                      </table>
                    </td>
                    <td align="right" valign="middle" class="flexiblecontainerbox">
                      <table class="flexiblecontainerboxnext" border="0" cellpadding="0" cellspacing="0" width="210" style="max-width: 100%;">
                        <tr>
                          <td align="left" class="textcontent">
                            <h3 style="color:#5f5f5f;line-height:125%;font-family:helvetica,arial,sans-serif;font-size:20px;font-weight:normal;margin-top:0;margin-bottom:3px;text-align:left;">box header</h3>
                            <div style="text-align:left;font-family:helvetica,arial,sans-serif;font-size:15px;margin-bottom:0;color:#5f5f5f;line-height:135%;">lorem ipsum dolor sit amet, consectetur adipiscing elit. maecenas augue urna, pharetra vitae nullam.</div>
                          </td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                </table>

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

<!-- divider -->
<tr>
  <td align="center" valign="top">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr>
        <td align="center" valign="top">
          <table border="0" cellpadding="0" cellspacing="0" width="500" class="flexiblecontainer">
            <tr>
              <td align="center" valign="top" width="500" class="flexiblecontainercell">
                <table class="flexiblecontainercelldivider" border="0" cellpadding="30" cellspacing="0" width="100%">
                  <tr>
                    <td align="center" valign="top" style="padding-top:0px;padding-bottom:0px;">
                      <table border="0" cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                          <td align="center" valign="top" style="border-top:1px solid #c8c8c8;"></td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                </table>
              </td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
  </td>
</tr>
<!-- // end of divider -->

<tr>
  <td align="center" valign="top">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr>
        <td align="center" valign="top">
          <table border="0" cellpadding="30" cellspacing="0" width="500" class="flexiblecontainer">
            <tr>
              <td valign="top" width="500" class="flexiblecontainercell">

                <table align="left" border="0" cellpadding="0" cellspacing="0" width="100%">
                  <tr>
                    <td align="left" valign="top" class="flexiblecontainerbox">
                      <table border="0" cellpadding="0" cellspacing="0" width="210" style="max-width:100%;">
                        <tr>
                          <td align="left" class="textcontent">
                            <img src="big.png" width="210" class="flexibleimage" style="max-width:100%;" alt="text" title="text" />
                            <h3 style="color:#5f5f5f;line-height:125%;font-family:helvetica,arial,sans-serif;font-size:20px;font-weight:normal;margin-top:10px;margin-bottom:3px;text-align:left;">box header</h3>
                            <div style="text-align:left;font-family:helvetica,arial,sans-serif;font-size:15px;margin-bottom:0;color:#5f5f5f;line-height:135%;">lorem ipsum dolor sit amet, consectetur adipiscing elit. maecenas augue urna, pharetra vitae nullam.</div>
                          </td>
                        </tr>
                      </table>
                    </td>
                    <td align="right" valign="middle" class="flexiblecontainerbox">
                      <table class="flexiblecontainerboxnext" border="0" cellpadding="0" cellspacing="0" width="210" style="max-width:100%;">
                        <tr>
                          <td align="left" class="textcontent">
                            <img src="big.png" width="210" class="flexibleimage" style="max-width:100%;" alt="text" title="text" />
                            <h3 style="color:#5f5f5f;line-height:125%;font-family:helvetica,arial,sans-serif;font-size:20px;font-weight:normal;margin-top:10px;margin-bottom:3px;text-align:left;">box header</h3>
                            <div style="text-align:left;font-family:helvetica,arial,sans-serif;font-size:15px;margin-bottom:0;color:#5f5f5f;line-height:135%;">lorem ipsum dolor sit amet, consectetur adipiscing elit. maecenas augue urna, pharetra vitae nullam.</div>
                          </td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                </table>

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

you can also change the layout of the page by moving the entire paragraphs and separators. i had already divided all these parts.







Template HTML

Published at DZone with permission of Andrey Prikaznov, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • The Future of Cloud Engineering Evolves
  • A Simple Union Between .NET Core and Python
  • Connecting Your Devs' Work to the Business
  • Too Many Tools? Streamline Your Stack With AIOps

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: