How to attach stylesheet to HTML email?


Tags: html,css,email

Problem :

I want to include normalize.css in a HTML email. However various tutorials advise that all css should be inline, as some email clients ignore linked styles in the head. In such case how can I include normalize.css?

The only reason I want to use normalize.css is so that it takes out the padding around the edge of the browser.



Solution :

The only reason I want to use normalize is so that it takes out the padding around the edge of the browser.

That's just:

body {
  margin: 0;
}

Go read the source code for Normalize, line 19:

https://github.com/necolas/normalize.css/blob/master/normalize.css

You can just inline that one bit, where appropriate.


    CSS Howto..

    How do I wrap and set CSS properties to achieve the depicted results?

    How to convert a HTML/CSS template to haml/sass template? [closed]

    How can I use themeroller'ed styles in “regular” parts of a page?

    How to add a style to