Skip to content

Instantly share code, notes, and snippets.

@fivedoor-gists
Last active October 3, 2019 16:19
Show Gist options
  • Save fivedoor-gists/fbe906413a9d90de7f1e6c00e758f9d0 to your computer and use it in GitHub Desktop.
Save fivedoor-gists/fbe906413a9d90de7f1e6c00e758f9d0 to your computer and use it in GitHub Desktop.
email-target-outlook.com
<style>
/* OWA Outlook.com
================== */
[owa] .foo {
}
</style>
<!-- Outlook.com and Office365 don’t support attribute selectors in CSS.
Both webmail apps remove the attribute from the selector, changing its meaning and initial intention.
For example, [owa] .foo selector has no effect on other email clients.
It will, however, be transformed to .foo, which Outlook.com and Office365 will be able to recognize, and so you’ll be able to target elements in your HTML code with the class “foo”.
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment