I am using one of the MailChimp templates as a base for an email design, however I will not be using MailChimp to send the email.
The MailChimp template has around 330 lines of CSS in the head. Its beens a while since I last did HTML emails, but is this acceptable or do I have to use inline styles on the elements?
I wasn't sure if MailChimp had a script that turned all the styles into inline css, and if I had to do the same thing.
inline CSS
is the most preferred for email templates, because not all email clients support CSS in head
section
Here is Guide to CSS support in email
Gmail is now rolling out support for media queries and styles in the head
. Using Campaign Monitor's Guide, all the major clients now support styles in the head
. If you're wanting the broadest possible support it's probably safer to keep inlining styles, but if your users are all using the major clients it's now safe to start pulling the styles out.
Inline Styles is the way go to achieve a consistent look and feel across all email clients.
Also have a look at: http://coding.smashingmagazine.com/2012/03/13/techniques-overcome-poor-css-support-email/
Here is a great tool for taking an HTML-email document with styles in the header and moving them inline. Should save you a lot of time and effort.
http://premailer.dialect.ca/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With