To defeat the many email clients, you’ll need to learn some special moves for your HTML and CSS. Here are the ones that we taught in Unmasking HTML Emails.
| Opponent | Move | Countermove |
|---|---|---|
|
|
Applies
margin: 0
to
table
elements
|
Use
table { margin: 0 auto !important; }
|
|
|
Applies
color: black
to
td
elements
|
Target all
td
elements with a color and !important in a
style
tag, or use inline styles
|
|
|
Forces text to a minimum
font-size: 14px
|
Use
-ms-text-size-adjust:none; -webkit-text-size-adjust:none;
on any element with a font-size less than
14px
|
|
|
Sometimes adds an unstyled link to addresses, phone numbers, URLs, etc. |
Use a global style for all
a
elements and use a
span
with a class to target specific ones
|
|
|
The Word rendering engine only supports layout-related CSS on table elements. | Use HTML tables for layout |
|
|
Removes
style
elements
|
Use inline styles for your entire email |