Home » Html » Is there a html conditional statement for everything not Outlook?

Is there a html conditional statement for everything not Outlook?

Posted by: admin November 30, 2017 Leave a comment

Questions:

I found a snippet of code that allows me to target clients that have outlook 2007 or higher.

<!--[if gte mso 9]><![endif]-->

Is there anyway to target everything but outlook or outlook 2007 & higher? If you’re giving an answer please give working code as I’ve tried

<!--[if ! mso 9]>
<!--[if ! mso]>
<!--[if !(mso)]>

None of the following worked in Gmail with firefox.

Answers:

Try this:

<!--[if !mso]><!-- -->
  content targeted at non-outlook users goes here...
<!--<![endif]-->

Questions:
Answers:

To prevent statements being stripped in outlook.com, change <!--> to <!-- -->

<!--[if !mso]><!-- -->
    All Except MSO 07-13
<!--<![endif]-->

Questions:
Answers:

Super late response, but hopefully this will help someone. This worked for me:

<!--[if !gte mso 9]><!---->
<p>I'm not Outlook 2007/2010.</p>
<!--<![endif]-->

Edit: Answered above, but extra tags on the IF statement are to hide the tags from being revealed in IE7/8.

Questions:
Answers:

That’s is a solution:

<!--[if !mso]><!-->
content without use in IE or Outlook
<!--<![endif]-->

I think so you can first resolve in IE, Outlook and denied with this for putting the elementss for all differents clients for email without Outlook.

regards

Questions:
Answers:

That’s not how you have to use it. Instead it is, for everything except Outlook – normal routine, for Outlook – do specific. Not the other way around like you’re trying to do.

Questions:
Answers:

Conditionals in comments like <!--[if gte mso 9]... is IE specific. Will not work in other browsers.