Conditional Statements for Outlook 2007
Here’s a bit of code that’s been floating around for ages (I think it first surfaced on Campaign Monitor’s Blog).
So essentially what this does is it allows a piece of content to be hidden from display in Outlook 2007, but display everywhere else. This could be used, for example, to hide a form element (forms don’t work in Outlook, but do everywhere else) and display something else instead. Essentially what’s happening is there’s a bit of css telling anything with the class .nooutlook not to display, and then the conditional statement hides that bit of CSS from everything except Outlook 07.
<!–[if gte mso 9]>
<style> // This CSS will only be seen in Outlook 2007
.nooutlook {display:none;} </style>
<![endif]–><table border=”0″ cellspacing=”0″ cellpadding=”20″ bgcolor=”#CCCCCC” class=”nooutlook”>
<tr>
<td>This content displays everywhere except Outlook 2007</td>
</tr>
</table><table border=”0″ cellspacing=”0″ cellpadding=”20″ bgcolor=”#CCCCCC”>
<tr>
<td>This content displays everywhere</td>
</tr>
</table>
Give it a go and let us know if you have any issues using it!
Pingback: Daily Links: April 27, 2011 | Elliot Ross | Elliot Ross()