Published — v. 1
/
CSS and e-mail clients: compatibility issues

CSS and e-mail clients: compatibility issues

In several email clients (e.g. Microsoft Outlook, Lotus Notes, etc.) Cascading Style Sheets are not interpreted as they are by a Web browser. Therefore, they cannot be used as they would be in a Web page.

Specifically, there are certain style definitions that are not supported, and - more importantly - only inline styles are taken into account. All other CSS (e.g. styles defined at the top of the page or in an outside *.css file) are ignored by many email clients, including a popular system like Gmail.

Ironically, best practices for designing Web pages must be ignored when creating an HTML email message. For example, HTML tables must be used for the layout of the email, and deprecated HTML tags (e.g. "hspace","vspace", "align", etc.) are actually the ones that provide the best results.

Useful resources:


In addition to limited support for cascading style sheets, please note that there are other elements that are often not supported, but are commonly used in Web pages. These include:

  • HTML Forms
  • Background images
  • ActiveX components
  • Adobe Flash animations
  • Animated GIFs
  • JavaScript
To recap:
  1. Avoid using the elements mentioned above
  2. If using CSS, always define the styles inline (learn more)
  3. There are some styles that may not be supported, even inline, such as background images

Related content

CSS does not work
CSS does not work
More like this
My HTML message appears different from what I expected in Microsoft Outlook
My HTML message appears different from what I expected in Microsoft Outlook
More like this
When my message arrives in the recipient's mailbox, the layout is different
When my message arrives in the recipient's mailbox, the layout is different
More like this
Lotus Notes does not display my emails properly
Lotus Notes does not display my emails properly
More like this
About using invisible tables to layout a HTML email message
About using invisible tables to layout a HTML email message
More like this
I added a style to the HTML BODY tag, but it does not work
I added a style to the HTML BODY tag, but it does not work
More like this