Zbyszek Kisły
Zbyszek Kisły

Reputation: 2238

Merging CSS into html

I had to make mail template that looks good and I did. Sent from normal client it looks good, but if i'm sending it from system that I use it doesn't read CSS in head section at all. Is there a tool that can inteligently merge CSS into html? The file is quite huge and adding manually style to every would be long and hard

Upvotes: 4

Views: 26175

Answers (3)

Anwar
Anwar

Reputation: 1

this is the most recommended way with an external link of CSS folder.

you can also combine CSS in HTML by using inline CSS. To do this, add your CSS code directly to the HTML elements that you want to style. For example: My Website

Upvotes: 0

Osman Hankir
Osman Hankir

Reputation: 86

Some email clients ignore <style> tags altogether, you'll need to inline the styles. This tool should help.

Upvotes: 7

Matthew James Morris
Matthew James Morris

Reputation: 93

Use <style type="text/css"></style> in your header tag to merge the css and html into one file. Then paste your css in between the style tags.

Upvotes: 3

Related Questions