Gmail strips CSS of HTML email, you must use inline CSS for GMail

Wonder why the HTML based email sent out by your PHP script will NOT display properly in GMail? GMail will strip all the CSS that is included in between the <style></style> tag pair (internal stylesheet) or the external style sheet included, such as
<link rel=”stylesheet” type=”text/css” href=”http://mycss.com/my.css” />.

In order to make your HTML or web-based email to properly display in GMail, you must use inline CSS, inside the HTML element , such as <div style=”font-size:8pt;padding:2px;margin:2px;”></div>

Enter your email address to subscribe our newsletter or feed for FREE:

Delivered by FeedBurner


Bookmark with:

[Delicious]    [Digg]    [Reddit]    [Facebook]    [StumbleUpon]

0 Responses to “Gmail strips CSS of HTML email, you must use inline CSS for GMail”


  1. No Comments

Leave a Reply

You must login to post a comment.