Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a conditional CSS If for outlook?

Tags:

html

css

email

I need some particular css for an html email, but only in outlook.

I'm looking for the outlook equivalent of
<!--[if IE]>body {background-color:red} <![endif]-->

like image 452
DevelopingChris Avatar asked Feb 02 '11 17:02

DevelopingChris


People also ask

Does Outlook recognize CSS?

Outlook doesn't support these CSS properties, so we use MSO tags to create “ghost tables” that apply a fixed width just for Outlook. Outlook can't render the CSS in this DIV but other email clients can, so we wrap this in a ghost table that replicates the DIV's desktop style. In this case, a container 340px wide.

Does Outlook support embedded CSS?

While you can use CSS background images with Outlook.com and Outlook 365, they are not supported in most desktop versions of the client.

How do I change conditional formatting in Outlook?

On the View tab, in the Current View group, select View Settings. In the Advanced View Settings dialog box, select Conditional Formatting.

What is cascading style sheets CSS in Outlook?

Using Cascading Style Sheets (CSS) allows developers to separate content from presentation. In other words, with CSS the visual layout of a Web page can be established with style sheets, while the content can be put into HTML.


1 Answers

<!--[if gte mso 9]
 // This CSS will only be seen in Outlook 2007
![endif]-->
like image 60
nkirkes Avatar answered Sep 21 '22 08:09

nkirkes