Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


How to make my HTML Email's CSS in the <style></style> block function in Gmail?

I wanted to create HTML email for my site www.educatemygirl.org but when I send an HTML email, Gmail is unable to read the CSS inside the <style></style> block. Please Guide me what should I do so that the email is readable with proper CSS in Gmail and all other Mail Clients. Regards

2 Answers

James Barnett
James Barnett
39,199 Points

HTML email is a world onto itself, it doesn't support much of the CSS we know today. Treehouse has an entire (new) course dedicated to the topic.

I have seen all the videos of HTML Email Design Course available on Treehouse but still is not possible for Gmail to read the CSS available in the <style></style> block and I need your guidance about how we can do it.
I hope you will understand my doubt and guide me Regards Nandini Goel

James Barnett
James Barnett
39,199 Points

Nope that's not possible, you need to inline your CSS.

Hopefully this guide can steer you on the right path http://www.campaignmonitor.com/guides/coding/guidelines/