How To Use Conditional Comments To Target Outlook

Outlook still doesn’t conform to the latest HTML standards. Unfortunately, it uses the Microsoft Word as the rendering engine. There are a lot of common tags/formatting that doesn’t work in Outlook. Using conditional logic to target Outlook is a great way to get past Outlook’s rendering quirks.

Targeting All Versions of Outlook

Put this code in the HEAD section of the HTML to target all versions of Outlook/p>

Targeting Only Outlook 2007, Outlook 2010, and Outlook 2013

Put this code in HEAD section of the HTML to target Outlook 2007, Outlook 2010, and Outlook 2013 only.

Targeting Only Outlook 2000

Put this code in HEAD section of the HTML to target Outlook 2000 only.

Targeting Only Outlook 2013

Put this code in HEAD section of the HTML to target Outlook 2013 only.

Want to know what CSS properties will work in Outlook? click here

Questions?

Email me, or send me a tweet @jennamolby.