This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(?s)<!--(?!<!)[^\[>].*?--> | |
Not including conditional comments | |
https://stackoverflow.com/questions/1084741/regexp-to-strip-html-comments/29194283 | |
https://www.jamesfawcett.co.uk/removing-comments-code-sublime-text/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
====== | |
xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" | |
Including a Vector Markup Language (VML) namespace declaration, to ensure email will render any VML | |
<head> | |
====== | |
<head>Yahoo App Android will strip this</head> | |
https://github.com/hteumeuleu/email-bugs/issues/28 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://freshinbox.com/tools/gmailpromotab/ | |
https://stripo.email/gmail-promo | |
https://developers.google.com/gmail/promotab/troubleshooting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!-- METHOD 1 --> | |
<style> | |
u + .body { | |
min-width:100vw; | |
border: 1px solid #ffffff; | |
} | |
</style> | |
<!-- Fixes IOS gmail but seems to break android gmail | |
However: | |
- ensuring media queries are in separate style block to main resets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Use this in your style and it should work | |
https://litmus.com/community/discussions/174-removing-underline-from-outlook#comment-15008 --> | |
display: inline-block |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Add to inline style in td --> | |
<!-- https://litmus.com/community/discussions/6757-line-height-issue-on-outlook-and-mso-line-height-rule-exactly-isnt-working --> | |
mso-line-height-rule: exactly; line-height: 150%; line-height: ###LINEHEIGHT####px; | |
<!-- Also try: --> | |
mso-line-height-alt: 150%; line-height: ###LINEHEIGHT####px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
/* Samsung | |
=========== */ | |
#MessageViewBody .foo { display: none !important; | |
} | |
/* if you have designs that utilize absolute positioning, you can hide those designs from the Samsung email client by using the following CSS. | |
Note this also means that the Samsung client replaces any id you set to the body tag in your email with its own. | |
https://www.emailonacid.com/blog/article/email-development/absolute-positioning-in-the-samsung-android-email-client | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
/* IOS 10 & IOS 11 | |
=================== */ | |
@supports (-webkit-overflow-scrolling:touch) and (color:#ffff) { | |
} | |
/* We can target iOS with the proprietary property “-webkit-overflow-scrolling” that is only supported on iOS. If we use this in combination with one of the properties supported exclusively in iOS’ most recent webkit versions— #RGBA color notations, for example—we can specifically target iOS 10 and above. | |
https://litmus.com/blog/what-email-marketers-need-to-know-about-ios-11-and-the-new-iphones | |
*/ | |
/* iOS 11.0 & 11.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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. |
NewerOlder