Blog


The Google Font API and HTML Email

05.24.2010

Google, in conjunction with Typekit, just released a new Font API that allows designers to easily import non-standard OS fonts into their web pages. The API uses the CSS @font-face rule but relies on their CDN to provide the data bandwidth, which is probably much faster than yours. After hearing about this we wanted to investigate and find out the email client support for such an API.

Read More Google Font API and HTML Email

Get connected with Email on Acid for up-to-date news and information on the subject of email design, development, and testing!

Email Testing RSS Feed Email Test on Twitter Email Preview on Digg Email CSS on Linked In Email Simulator on Stumbled Upon


Monday, 17 August 2009

Default CSS in Web & Desktop Email Clients

It’s important to beware!

It comes as no surprise that web clients use their own style sheets to render their pages. In the new version of Yahoo Mail and AIM Mail, emails are rendered inside an I-frame allowing for a fairly clean slate. However, in clients like G-Mail, Hotmail and Yahoo-Classic, they seem to make an attempt to reset browser defaults but several of their self-imposing styles are still carried over.

This issue may actually challenge the notion that you are always safe using the basics when it comes to tables and divs. In fact if you didn’t know that you needed to overwrite certain styles using embedded or inline CSS, your end result may look much different than expected.

For example, Hotmail applies a margin value to its p, h1-h6, ul, and li elements and ironically they don’t support the “margin” property in the rendered email itself.  Fortunately they do support “margin-left,” “margin-right,” and “margin-bottom.”  In this instance, if you are using a background color or inserting images in any of these elements and you don’t set a value for the above properties, you may see unwanted spacing in the end result.

Gmail Email Preview, Hotmail Preview, Yahoo Preview

As luck would have it, web clients are not the only ones using default CSS.  Most desktop clients use them as well. We hope you can read through our sarcasm here.

Simulating the so called “default” CSS for each email client wasn’t a huge problem for us. It was mostly just a matter of being rather tedious and time consuming and as we continue to run test after test, we are sure to refine them as we go.

When we started this Email Test project, we where obviously aware of the current challenges of testing an email in each of the popular clients, but when doing this type of research we find that it may be even more important than we had originally thought. We even ran several high profile corporate emails through our test and saw that default CSS played a big roll in the final output.

That said, we will conclude by repeating the phrase “It’s important to beware!



Share/Save/Bookmark

If you haven't signed up yet, give our FREE online Email Test a try. Just drop in your code and we will instantly simulate your email in the most popular email clients!

Get connected with Email on Acid for up-to-date news and information on the subject of email design, development, and testing!

Email Testing RSS Feed Email Test on Twitter Email Preview on Digg Email CSS on Linked In Email Simulator on Stumbled Upon

Comments

Thanks for this well crafted piece of writing about such an important issue facing us.
By Web design company on 11/07/2009

You always come up with great stuff I love your blogs! Cheer! Web Design India
By Web Design India on 11/17/2009

You are putting very good effort into the stuff you post. Keep up the good work
By ecommerce website design on 12/10/2009

This is really informative article.We get many emails from customers who would like to use CSS in their email newsletters, particular when creating their stationery and templates for MailList King. CSS (Cascading Style Sheets) are widely used when creating web pages and allow improved styling and layout of HTML content. Unfortunately, email isn't the web. Your design may look great in one email client, but chances are it will be different in other email clients.square peg web
By rena on 06/08/2010

Nice stuff indeed! You have provided very good information in details regarding this topic. It is really very useful.
By SEO on 08/11/2010

Share Your Comment

Name:
Email:
Location:
URL:

Comment:

Remember my personal information
Notify me of follow-up comments?

Please enter the word you see in the image below:

Follow us on Twitter Become a Friend on Facebook Subscribe to our Blog Digg Us! Recommend on StumbleUpon