Target CSS for Outlook 2007 only? (Word rendering engine)

Is it possible to target Outlook 2007's Word rendering engine for developing CSS to address specific issues? Now, I know Word's barfing of CSS isn't valid but Outlook 2007 is important to code for at my company and a workaround to address formatting would be great.

When I create something in Word 2007 and save it as a web page, and then take a look at its code, I notice some conditional comments that have made me curious:

<!--[if gte mso 10]>
<style>
 /* Style Definitions */
 table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin-top:0in;
    mso-para-margin-right:0in;
    mso-para-margin-bottom:10.0pt;
    mso-para-margin-left:0in;
    line-height:115%;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;}
</style>
<![endif]--><!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="2050"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1"/>
 </o:shapelayout></xml><![endif]-->

Does anyone have any experience or knowledge of this?

Dave Dave, 8 years ago

I haven't seen this in action or heard of anyone using this, but I'd love to know if it's actually supporting in Outlook 2007. What I do know is that some web-based email clients won't like the conditional comments and will simply use the Outlook-only CSS anyway.

At the very least it's a peak into the terrible code produced by the Word rendering engine.

If you have any updates on this we'd all love to hear it.

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free
1-888-533-8098