Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS Styling won't work in outlook 2010?

If I use styling in my outlook, it won't work.

how can I fix it? I am talking about this style code:

<div id="BodyID" Style=" word-spacing:2px;  min-width:0px; min-height:0px;max-width:693px; max-height:490px;  height:485px; background-color:#f4f4f4; border:1px solid #e4e4e4; font-family:Arial;">
like image 755
user1032254 Avatar asked Nov 29 '11 12:11

user1032254


3 Answers

Unfortunately Outlook supports something roughly equivalent to IE5 compatible HTML. It's really terrible. Here's a detailed MSDN article on the Word 2007 HTML and CSS Rendering Capabilities in Outlook 2007, which I don't believe changed much for Outlook 2010.

Honestly, the only way I've been able to get outlook HTML to look the way I want is to hand generate the HTML using roughly HTML2 standard tags and properties and not using CSS at all. Some CSS renders, but it's really hit or miss.

like image 131
superlime Avatar answered Oct 31 '22 09:10

superlime


Maybe this can help http://www.campaignmonitor.com/css/ It's a table, what is supported in E-Mails


edit
min|max-width|height not supported

like image 35
yunzen Avatar answered Oct 31 '22 09:10

yunzen


http://htmlemailboilerplate.com/

I've been using that as a base for my HTML email campaigns.

And the link yunzen posted to campaign monitor is a great resource.

like image 20
Christopher Marshall Avatar answered Oct 31 '22 07:10

Christopher Marshall