petemitch wrote:You could try a CSS inliner like the
MailChimp or
Zurb ones.
CSS support in mail clients is patchy at best, (particularly in recent versions of Outlook which use the Word HTML rendering engine), so
writing HTML for emails tends to mean coding like it's 1999 and breaking out the table layouts and spacer gifs and testing in as many email clients as you have access to. Even simple stuff like the background image from your example code just doesn't work in Outlook.
You are right to using CSS inliner online tool to convert to email.
But, I suggest another better online tool with suggestions after convert process (quite good suggestions).
It is:
http://inlinestyler.torchboxapps.com/styler/convert/Here is the suggestions after I converted your email template on it (and I think it is a best practice when you make another mailing template):
- The pseudo-class focus cannot be supported inline
- The pseudo-class before cannot be supported inline
- The pseudo-class after cannot be supported inline
- The pseudo-class hover cannot be supported inline
- height not supported by: MySpace, Notes 6 and 7, Outlook '07, Blackberry
- font-size not supported by: Blackberry
- right not supported by: MySpace, Gmail, Yahoo! Mail, Android Gmail, Notes 6 and 7, Palm Treo (Win Mobile 6.5), Hotmail, Yahoo! Classic, Palm Treo (Palm Garnet OS), Outlook '07, Blackberry
- vertical-align not supported by: Android Email, Notes 6 and 7, Outlook '07, Blackberry
- display not supported by: Palm Treo (Palm Garnet OS), Outlook '07, Blackberry
- border not supported by: Notes 6 and 7
- top not supported by: MySpace, Gmail, Yahoo! Mail, Android Gmail, Notes 6 and 7, Palm Treo (Win Mobile 6.5), Hotmail, Yahoo! Classic, Palm Treo (Palm Garnet OS), Outlook '07, Blackberry
- float not supported by: Android Email, Android Gmail, Notes 6 and 7, Outlook '07, Blackberry
- font not supported by: Palm Pre (WebOS) (partial support), Notes 6 and 7, Palm Treo (Win Mobile 6.5) (partial support), Palm Treo (Palm Garnet OS), Blackberry
- line-height not supported by: MySpace, Notes 6 and 7, Palm Treo (Palm Garnet OS), Blackberry
- padding not supported by: Notes 6 and 7, Outlook '07 (partial support)
- width not supported by: MySpace, Notes 6 and 7, Outlook '07
- background not supported by: Gmail (partial support), Android Email, Android Gmail, Notes 6 and 7, Hotmail, Palm Treo (Palm Garnet OS), Lotus Notes 8.5, Outlook '07 (partial support)
- position not supported by: MySpace, Gmail, Yahoo! Mail, Android Gmail, Notes 6 and 7, Palm Treo (Win Mobile 6.5), Hotmail, Yahoo! Classic, Palm Treo (Palm Garnet OS), Outlook '07, Blackberry
- font-family not supported by: Palm Treo (Win Mobile 6.5), Palm Treo (Palm Garnet OS), Blackberry
- margin not supported by: Notes 6 and 7, Palm Treo (Win Mobile 6.5) (partial support), Hotmail, Blackberry
- font-style not supported by: Palm Treo (Palm Garnet OS)
- clear not supported by: Notes 6 and 7, Palm Treo (Win Mobile 6.5), Palm Treo (Palm Garnet OS), Outlook '07
- left not supported by: MySpace, Gmail, Yahoo! Mail, Android Gmail, Notes 6 and 7, Palm Treo (Win Mobile 6.5), Hotmail, Yahoo! Classic, Palm Treo (Palm Garnet OS), Outlook '07, Blackberry