Difference Between Responsive Email Templates and Responsive Website Templates

I hope to explain in the plainest language the difference between responsive email templates and responsive website templates. Thus, even if you are not a coder / developer you will be able to understand the basic concept.

Let us start with the definition of “Responsive”; what this means is that the email template or the website template contains some embedded algorithm. Thus, this will respond to the screen size of the device (on which they are viewed) and display the best-fitting version.

The concept of “Responsive” templates is relatively new and is in answer to the deluge of new viewing devices from smart phones to tablets to mini-tablets, etc. Thus,this has come into popular use recently (in the last 6 years) each with different sizes and viewing dimensions.

Responsive Website Templates

When we view a webpage, we normally do so through a web browser such as Firefox, Chrome, Safari, Internet Explorer, Opera and a few others. Even with the diversity of these different web browsers, there are only 4 major underlying interpreters (e.g. webkit, Trident, Gecko, Blink). For instance, both Opera and Chrome use the Blink technology to interpret webpages. It means if your web page looks fine on the latest version of Chrome. Then it would most likely look fine on the latest version of Opera.

Having 4 separate underlying interpreters has been the cause of headaches for website programmers. This is because the same webpage will display differently on different browsers. Unfortunately, all the browser developers are fighting for dominance rather than collaborating to build a common standard so they are all pulling apart and going their separate ways; as a result; developers are now having to write special instructions within webpages to tell each browser what to do. The special instructions are usually in the form of CSS (Cascading Style Sheet). And there are formatting instructions that are embedded in the webpage.  An example of these instructions are as follows:-

div {
-webkit-transition: width 2s, height 4s; /* Safari */
transition: width 2s, height 4s;
}

In the above snippet, -webkit-transition is a special instruction to Safari browsers only but not to any of the other browsers, so only Safari browsers will take note of the instruction -webkit-transition.

For achieving responsiveness on webpages, we define how the page responds using special instructions embedded in the CSS code called “Media Queries” which look like this:-

@media (max-width: 320px) {
html {
font-size: 60.5%;
}
}
@media (max-width: 480px) {
html {
font-size: 70%;
}
}

“@media” just defines what happens when the device is smaller than 320 pixels in width. By doing so developers can define the page’s formatting given a certain screen dimension through which achieve responsiveness.

The Difference?

So going back to the initial question of the difference between responsive website templates and responsive email templates. Now that we have covered how website templates are programmed to achieve responsiveness we will do the same for email templates. Thus, you will have a overview of the underlying mechanism for both websites and emails.

Responsive Email Templates

Unfortunately, email browsers (or traditionally Mail User Agents – MUA) are even more tricky and diverse than web browsers where some are entirely cloud-based (e.g. Yahoo! mail), some are application-based (e.g. Microsoft Outlook) and some are a hybrid of the two (e.g. Zimbra). In addition, email browsers do not allow the embedding of Javascript code [for security reasons] and CSS3 support is not consistently supported either so we are not able to adopt either of these technologies in the programming of responsive email templates.

So how can we achieve responsiveness on email templates?

Back in 2000 before CSS was very popular the position of elements on webpages were controlled entirely by the creative use of tables within tables [or nested tables]. For the programming of email templates, we have not really moved away from this model. Even to this day, email templates are using nested tables and not CSS. Because Media Queries are a CSS3 directive, they cannot be used in email templates. Therefore, we have to find other ways to make an email template responsive.

Creative developers got around the issue using tables and inline CSS directives to give the illusion of responsiveness?

The following is an example of using HTML code to make 2 columns in an email reflow to display one after the other in a singe column.  Please do not get put off if you can’t understand the code below.

You can see that the by using the directive “max-width” and nested tables. Therefore, we are able to achieve (in a very crude way) responsive display whereby one table is reflowed below the other. However, there are many limitations with the method in the way that it is much harder. If not impossible, to control the order of the reflow and the triggers for reflow.

So in answer to the original question of the difference between responsive website templates and responsive email templates. We can now see that the underlying technologies are about as far apart as they get even though both technologies appear to be doing the same thing. In fact, there are virtually no similarities at all in the programming code for website templates and email templates. Therefore, at least for the next 5 years we will have to continue to develop separate responsive templates for websites and emails.

As a developer, I really hope that life will become simpler and email browsers will converge more. Therefore, we will be able to write a single template that will work on all web browsers and all email browsers; until then developers will continue to have to write separate templates for the web and for emails and test each template across a myriad browsers.

Example of Responsive Email Code:-

<!– Start 2 Columns –>
<table align=”center” style=”width: 100%;max-width: 620px;”>
<tr>
<td style=”padding: 0;text-align: center;font-size: 0;”>
<!–[if (gte mso 9)|(IE)]>
<table width=”100%” cellspacing=”10″>
<tr>
<td width=”50%” valign=”top”>
<![endif]–>
<div class=”column” style=”width: 100%;max-width: 300px;display: inline-block;vertical-align: top;”>
<table style=”border-spacing: 0;width: 100%;font-size: 16px;text-align: left;”>
<tr>
<td align=”left”> Column 1 Text
</td>
</tr>
</table>
</div>
<!–[if (gte mso 9)|(IE)]>
</td><td width=”50%” valign=”top”>
<![endif]–>
<div style=”width: 100%;max-width: 300px;display: inline-block;vertical-align: top;”>
<table style=”border-spacing: 0;width: 100%;font-size: 16px;text-align: left;”>
<tr>
<td align=”left”>
Column 2 Text
</td>
</tr>
</table>
</div>
<!–[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]–>
</td>
</tr>
</table>
</li>
<!– End 2 Columns  –>

 

Standard Email Width in 2017

Marketing Departments, Developers and general Digital Media folks are constantly at odds with what the industry standard should be for an EDM’s dimensions such as email width (Email Direct Mailing). Also, I hope to throw in my two cents as to how things used to be, what they are currently and where they will likely go.

Before we start, this blog is more targeted towards developers, programmers and marketeers who are familiar with the practice for email marketing and have most likely sent out EDMs in the past. For those haven’t, I will try to avoid using too many technical terms and keep the language as simple as possible.

The dimensions of an EDM have always, historically, been governed by the screen size(s) of the prevailing device(s) displaying them and 10 years ago the screen sizes were considerably more homogeneous than they are today. When I first cut my teeth in email marketing 16 years ago, things were quite different, most people were still using CRT monitors and LCD monitors were just coming out (and much-coveted), back then, the around 50% of the users had a screen resolution of 800 x 600 and around 38% 1024 x 768 and the remaining 12% were something else. And close to 80% of the users viewed emails with Microsoft Outlook or Outlook Express.

For those who are familiar with Microsoft Outlook or Outlook Express, you will know that the default display profile is some folders on the left-hand column and the main email display body area on the right, see below:-

Outlook Express Screenshot
Outlook Express Display

So on a 800 x 600 screen, the main email display body was around 600 pixels so for a while the industry standard for an EDM’s width was 600pixels wide. This is because the single biggest annoyance we tried to avoid submitting our readers to do was scroll right to view the entire EDM. However, this was considered an absolute no no; so even though there were many users 1024 x 768 screens, the industry decided that it would be more acceptable for users with larger screens to see space on either side of the EDM than for users with smaller screens to have to scroll left and right to view the EDM in its entirety.

As such, the 600pixel width stayed as the standard until LCD screens became commonplace around 2005/2006 because the minimum resolution for LCD screens was 1024 x 768.

Several noteworthy points:-

  • Viewing emails with mobile devices was virtually unheard of
  • Scrolling vertically (i.e. up and down) was considered acceptable because most email threads were long and many of the computer mouses had a vertical scroll widget on them so the industry was never as regimented in setting a height standard for EDMs as we were for width
  • With the advent and prevalence of LCD screens, we started to advise clients to use 800 pixels in width for EDMs and this was around 2006. This standard was further strengthened by the release of the first generation iPad in 2009 which had a screen resolution of 1024×768.

And then things changed….

The advent of smartphones turned the world upside down for marketeers and developers alike in the email marketing space making the screen size of the viewing device very heterogeneous. With the release of the first iPhone in 2009, we have witnessed an increase year-on-year in the proportion of users viewing emails on the mobile devices over other devices such as desktops and tablets. In December 2015, the number of users viewing one of our EDMs was 68% on mobile devices compared with 29% on desktop and 3% on tablets (this is in Hong Kong). Therefore, mobile devices has become more and more important and as of today it is no longer a force that can ignored.

Dilemma

The dilemma that we faced was that mobile devices have a much smaller screen compared with desktop computers. Also, we were to cater to just mobile devices then all of our EDMs would have to be 300 pixels in width or less which would look ridiculous on desktops whilst if we displayed the EDMs at 800 pixels to cater for desktop users those viewing with mobile devices would have to constantly zoom in and out to view the communication properly.

By the way, the reason why the the mobiles phones width had to be 300 pixels was because the screen’s width was 320 pixels (iPhone 4) and we allowed for 10pixels padding on either side, see below:-

iphone 4 width
iphone 4 width

So, how could please everybody?

The Advent of Responsive Email Templates

Implementing responsive Email Templates was the answer to the dilemma we faced – “responsiveness” just means that the template’s embedded code will respond to the size of the screen. Also it presents the display differently according to the size of the screen detected.

Much of the time within email templates, there are many different parts or components; for example you may have a header followed by a part with 3 photos displayed in tandem followed by 2 columns of text below. Please see below example:-

Responsive Email Template Example
Responsive Email Template Example

The above is a screenshot of an email template displayed on a desktop. Together with the same email template would appear like the following on a mobile device:-

responsive email on iPhone
responsive email on iPhone – 3 columns
2 column display on iphone
2 column display on iphone

As one can see the 2 columns on the desktop “reflow” to become 1 column on the iPhone and on both desktop and mobile the images are clear and the words are legible. Bingo! Both worlds are happy.

So to go back to the initial question of what the current industry standard for an EDM’s width is, the current standard is 600 pixels in width. One may argue that it is a regression for Desktop computers whose screens have become larger and larger over the years but yet the EDM’s width has regressed from 800 pixels back to 600 pixels. Admittedly, it is a regression for desktop computers but 600 pixels was a compromise made to satisfy both worlds.

Reason for the Compromise

If an EDM’s width is 800 pixels, then with the 2 column scenario each column would be 400 pixels in width (800 / 2 = 400), however when these columns reflow they would still be too wide for the mobile phones which are only 320 pixels in width so the user would need to scroll left and right to see the entire column. Whereas when the EDM’s width is 600 pixels and each column is 300 pixels, the single column would still appear nicely on mobile devices.

So this is why 600 pixels wide is the current industry standard as of start of 2016.

My Expectations for the Future

With the advent of iPhone 6+ and the Samsung Galaxy S6, the screens are getting wider which can both display 400 pixel width without left-right scrolling. It is quite likely that the industry standard would go back to 800 pixels in the next couple of years as these devices become more commonplace.

Footnote

There are some hard-core technical information that I have left out and other considerations such as email browser compatibility and the difference between responsive email templates and responsive website templates. Therefore, I hope to cover these in more details in other articles.