Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a tool to take proper HTML + CSS and generate inline-styled HTML? Or: convert it to email compatible HTML

Tags:

html

css

email

possible duplicate: What tools to automatically inline CSS style to create email HTML code ?

note from author: Oh yeh, definitely duplicate. Sorry.

In general, HTML emails do not support proper CSS techniques.

However, it's nice to develop in these techniques because it makes it a lot quicker to play around with changes etc. (I don't need to sell the benefits of CSS to you all!)

Is there a tool that will take lovely HTML and turn it into nasty email compatible HTML with all the styles extrapolated from the CSS files and placed inline?


Even though 100% compatibility cannot be achieved due to the numerous differences in email clients out there, a tool that helps the process would be very useful, even if it simply takes the CSS and inlines it.

like image 642
joshcomley Avatar asked May 29 '09 15:05

joshcomley


People also ask

How do I convert HTML to email?

Create a new email message. Use the "Insert" menu in most programs to insert the HTML file into the email body. Otherwise, for Mac OS X Mail, type the URL address from Step 4 in your Safari Web browser and press the "Command" and "I" buttons on your keyboard to automatically load the HTML in the message.

How do you do inline styles in HTML?

Using CSS. CSS can be added to HTML documents in 3 ways: Inline - by using the style attribute inside HTML elements. Internal - by using a <style> element in the <head> section.

What are the three 3 ways of implementing style in HTML?

There are three ways you can use to implement CSS into your HTML: internal, external, and inline styles.


1 Answers

Campaign Monitor have an excellent guide to CSS support in email clients as of 2008. It's very comprehensive.

like image 63
John Topley Avatar answered Dec 17 '22 08:12

John Topley