Are there any tools that can inline css?

Posted by Todd R on Stack Overflow See other posts from Stack Overflow or by Todd R
Published on 2009-07-02T23:20:52Z Indexed on 2010/03/19 15:21 UTC
Read the original article Hit count: 178

Filed under:
|
|

Because some email clients don't properly render external stylesheets (or even styles within the of an html email message), inlining css is a common approach to try to maintain consistent look and feel between a website and emails. But manually inlining styles is painful and error prone.

I'm looking for a way to let users create messages using the same stylesheet as their website uses, but then converts the text to a more email appropriate format prior to sending. While it's certainly possible to write a tool that reads styles and the DOM, injecting the correct inline style for each element, I'm hoping there's already a tool available that does this. Unfortunately, my googling hasn't yielded any useful results.

Do you know of any tools that can inline css styles? I'm not picky about the language, though if it's not open source, I'll probably just write my own.

© Stack Overflow or respective owner

Related posts about css

Related posts about XHTML