Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a html conditional statement for everything not Outlook?

Tags:

html

email

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.

like image 874
David Nguyen Avatar asked May 12 '11 18:05

David Nguyen


People also ask

Are there conditional statements in HTML?

How to Build HTML for Conditional Links. Like we learned in the above example, conditional statements are best used outside your the Insert Link html elements. You will want to define your primary condition, then build the content to display after. Use {% else %} for your fallback content, and end with {% endif %}.

What is if MSO in HTML?

Basic syntax Section titled Basic syntax. We can use MSO (Microsoft Office) tags to add HTML / CSS anywhere in an email template. This code will be ignored by other email clients.

Does Outlook support inline block?

Supports block, inline, list-item, and none. Outlook doesn't really support <div> Classes and styles You can use them, but styles do not always get applied.


2 Answers

Try this:

<!--[if !mso]>-->   content targeted at non-outlook users goes here... <!--<![endif]--> 
like image 74
Will Peavy Avatar answered Sep 21 '22 21:09

Will Peavy


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

<!--[if !mso]><!-- -->     All Except MSO 07-13 <!--<![endif]--> 
like image 29
seanjacob Avatar answered Sep 23 '22 21:09

seanjacob