Conditional Statements for Outlook 2007

Conditional Statements for Outlook 2007

Conditional Statements for Outlook 2007

Bex Osborn

Marketing Strategist

26 Apr 2011

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.


This content displays everywhere except Outlook 2007

This content displays everywhere

Give it a go and let us know if you have any issues using it!


Let’s

create

together

Got a project or want to know more about what we do? Drop us a message here, and we'll get back to you.

Let’s

create

together

Got a project or want to know more about what we do? Drop us a message here, and we'll get back to you.

© 2011-2024 Action Rocket Ltd. All rights reserved.