
1
MSO hide all in Outlook Web App
Hi guys
Im throwing myself for the lions by creating a form..
It works fine in the respected clients, however i want to target outlook web app (Outlook.com)
The problem is that outlook is the only client that shows the form, but doesnt support it.
Is there anything i can do?
Hey,
you can target outlook.com (and Outlook Web App for that matter, which is a totally different thing and a very dark place) by adding the attribute selecor [owa] to the css styles in question.
So if you add
<style> [owa] .OutlookHide { display: none } </style>
to your head, and add the OutlookHide class to the table that contains your form, it won't show in Outlook.com
Has anyone else noticed that this seems to have stopped working? I've been using it for years and as of today, I can't get it to work...
I was looking for that conditional the last 4 weeks and couldn't find it. Even now that I know that [owa] conditional exist I can't find any documentation about it on the web, from where do you know this?
I honestly can't remember where I got it from, or I would have credited that source.
To clarify: It doesn't matter what you write in the attribute selector (as long as it's not too common). The trick is, that Outlook.com/Hotmail strips the Attribute Selector from mails, but leaves the rest of the css rule intact.
Other mail clients will either strip (gmail) or filter (yahoo) css rules with attribute selectors, or leave them entirely intact, so the selector will keep the css from being applied.
Thank you so much Leo
Internet high five your way!