Re:Handy webapp to make CSS inline (for HTML emails etc)
by hachiya on Sunday June 14, 2009 @06:46PM
(#657666)
This is very nice. I am interested in whether or not
an open source library was used for much of the processing,
or if it was written from scratch entirely.
If there is no open source library available to convert
stylesheets+HTML to inline CSS, it would be a good idea
to consider open sourcing some of the code behind this
app.
Re:Handy webapp to make CSS inline (for HTML emails etc)
by teej on Sunday June 14, 2009 @09:56PM
(#657813)
You can support CSS and not the <style> tag. This tool converts a stylesheet to inline styles for you. One great example for usage is in an eBay auction.
Re:Handy webapp to make CSS inline (for HTML emails etc)
by m_eiman on Monday June 15, 2009 @09:50AM
(#658374)
Email clients are known for handling HTML in a variety of broken ways, one worse than the other. From what I remember Notes is the worst one to handle, followed by Outlook. Since a few people use those clients, writing stuff they can display is required.
Re:Handy webapp to make CSS inline (for HTML emails etc)
by lhorie on Monday June 15, 2009 @07:53AM
(#658258)
It seems to do what it advertises well, but it's still not very useful in real life: it doesn't warn when you use poorly supported styles, e.g. background-image isn't supported in Outlook 2007.
Re:Handy webapp to make CSS inline (for HTML emails etc)
by geuis on Sunday June 14, 2009 @06:24PM
(#657645)
This is awesome. I occasionally do email mailouts for an old friend and its normally pretty manual. I was thinking about getting around to building something like this, but this works perfectly!
If there is no open source library available to convert stylesheets+HTML to inline CSS, it would be a good idea to consider open sourcing some of the code behind this app.
Either way, very nice app - great job!
http://github.com/milk1000cc/docomo_css/
Here is a related article I’ve found useful recently: http://www.campaignmonitor.com/css/
"Premailer is written in Ruby, with a lot of help from Hpricot"
A funny thing I've read is that Outlook 2007 is apparently worse than the 2003 version. See e.g. http://www.google.se/search?q=outlook+html+rendering