ActionRocket
Services Work Contact Reading Corner Email Weekly
Home Work Services Email Weekly
ServicesWorkContactReading CornerEmail Weekly
ActionRocket
ActionRocket Home Work Services Email Weekly

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 </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!

CodeAction RocketApril 26, 2011forms in email, html email, outlook 2007, rendering issues
Facebook0 Twitter Reddit 0 Likes
Previous

Infographic: The Evolution of Spam

StudioMay 26, 2011email marketing, infographic, spam
Next

Email Inspiration: Krispy Kreme - Don't forget the rings Harry!

DesignApril 26, 2011email best practice, email design, Email Design Best Practice, email design gallery, email marketing design, Email Marketing Jobs, email marketing strategy, english email design, Krispy Kreme, royal wedding emails

Got a project?

Contact us

Leave us a message and we'll get back to you.

Name *

Thank you for your message.

 

Sign up:

#EMAILWEEKLY

Sign-up to our weekly industry round-up email. Including our top email, design and strategy articles curated by the team each week.

By signing up you agree to receiving the latest updates, tips and industry news.

Thank you for subscribing

hello@actionrocket.co
Hours
HomeServicesWorkReading CornerResourcesEmail WeeklyCareers
 
  • Terms of Use

  • Privacy Policy

© 2011-2023 Action Rocket Ltd. All rights reserved.
Registered in England and Wales, № 07783258. VAT № 130667819

 
White logo.png