SlideShare a Scribd company logo
litmus ®
Everything You Need to Know About
GMAILRENDERING
@KevinMandeville #CSSSummit
HELLO,I’M@KEVINMANDEVILLE
@KevinMandeville #CSSSummit
IDESIGN+BUILDEMAILSAT
litmus ®
#LitmusLive
TWEET
@litmusapp #LitmusLive
WITHANYQUESTIONS
litmus ®
#LitmusLive
emailclientmarketshare.com
Source: Litmus Email Analytics
litmus ®
#LitmusLive
26%of market share is Gmail
Source: Litmus Email Analytics
litmus ®
#LitmusLive
WENEED(ED)INLINESTYLES
BECAUSEGMAIL...
B.C(SS).
GMAILRENDERING
Source:https://emails.hteumeuleu.com/trying-to-make-sense-of-gmail-css-support-after-the-2016-update-53c15151063a
#LitmusLive
❌ WITHOUTINLINECSS ✅ WITHINLINECSS
#LitmusLive
✅ WITHINLINECSS❌ WITHOUTINLINECSS
🎉GMAILNOWSUPPORTS 🎉
EMBEDDEDCSS+MEDIAQUERIES!!!
😍
😍
😍
😍
https://blog.google/products/gmail/better-emails-tailored-to-all-your-devices | https://litmus.com/blog/gmail-to-support-responsive-email-design
AFTER
GMAILRENDERING
Source:https://emails.hteumeuleu.com/trying-to-make-sense-of-gmail-css-support-after-the-2016-update-53c15151063a
litmus ®
#LitmusLive
Desktop webmail ✅
Mobile webmail ❌
Gmail Android App (Gmail Account) ✅
Gmail Android App (Gmailified Account) ✅
Gmail Android App (POP/IMAP Account) ❌
Gmail iOS App ✅
Inbox by Gmail webmail ✅
Inbox by Gmail iOS App ✅
Inbox by Gmail Android App ✅
G Suite (formerly Google Apps) ✅
Google Apps Free Edition (legacy) ❌
EMBEDDEDCSS+MEDIAQUERYSUPPORTINGMAIL
(*EXTERNALCSSSTILLNOTSUPPORTED)
litmus ®
#LitmusLive
Android 4.4 (Vanilla Stock Email App) ✅
Android 5.1 (Vanilla Stock Email App) ❌
Android 6.0 (Vanilla Stock Email App) ❌
Gmail Android App (Gmail Account) ✅
Gmail Android App (Gmailified Account) ✅
Gmail Android App (POP/IMAP Account) ❌
EMBEDDEDCSS+MEDIAQUERYSUPPORTONANDROID
litmus ®
#LitmusLive
ANDROID4.4 ANDROID5.1 ANDROID6.0
DEFAULTANDROIDEMAILAPPS
Android 5.1+ switched to Gmail app as the default email app.
The stock vanilla email app on Android OS does not currently
exist in the wild, though remains publicly available for
developers to use and build off of. The stock vanilla email app
on Android OS on 5.1+ does not support embedded CSS.
Stock vanilla email app of
Android OS (supports
embedded CSS)
litmus ®
Highlights of the
RENDERINGUPDATE
litmus ®
#LitmusLive
75%of market share now supports responsive email - no excuses anymore!
Source: Litmus Email Analytics
@KevinMandeville #CSSSummit
✅ SUPPORTEDMEDIAQUERIES
Types:
all
screen
Keywords:
and
only
Queries:
min-width
max-width
min-device-width
max-device-width
orientation
min-resolution
max-resolution
@KevinMandeville #CSSSummit
✅ BACKGROUNDIMPROVEMENTS
background
background-blend-mode
background-clip
background-color
background-image
background-origin
background-position
background-repeat
background-size
@KevinMandeville #CSSSummit
✅ ACCESSIBILITYCSSIMPROVEMENTS
pitch
pitch-range
richness
speak
speak-header
speak-numeral
speak-punctuation
speech-rate
@KevinMandeville #CSSSummit
✅ :hover
❌ :checked
(GOODBYECSSCLICKEVENTS+INTERACTIVEEMAILINGMAIL)
@KevinMandeville #CSSSummit
ITEMSSTILLNOTSUPPORTED...
❌ External stylesheets
❌ Absolute/fixed positioning
❌ Negative margins
❌ CSS animations
❌ Web fonts
❌ HTML5 video
litmus ®
COMMONERRORSTOAVOID...
AREYOUNOTSEEINGGMAILRENDERYOURCSS?
litmus ®
#LitmusLive
DOESYOURVERSIONORACCOUNTOF
GMAILSUPPORTEMBEDDEDCSS?
#1
litmus ®
#LitmusLive
Desktop webmail ✅
Mobile webmail ❌
Gmail Android App (Gmail Account) ✅
Gmail Android App (Gmailified Account) ✅
Gmail Android App (POP/IMAP Account) ❌
Gmail iOS App ✅
Inbox by Gmail webmail ✅
Inbox by Gmail iOS App ✅
Inbox by Gmail Android App ✅
G Suite (formerly Google Apps) ✅
Google Apps Free Edition (legacy) ❌
EMBEDDEDCSS+MEDIAQUERYSUPPORTINGMAIL
(*EXTERNALCSSSTILLNOTSUPPORTED)
litmus ®
#LitmusLive
Android 4.4 (Vanilla Stock Email App) ✅
Android 5.1 (Vanilla Stock Email App) ❌
Android 6.0 (Vanilla Stock Email App) ❌
Gmail Android App (Gmail Account) ✅
Gmail Android App (Gmailified Account) ✅
Gmail Android App (POP/IMAP Account) ❌
EMBEDDEDCSS+MEDIAQUERYSUPPORTONANDROID
litmus ®
#LitmusLive
✅ GMAILANDROIDAPP(GMAILACCOUNT) ❌ GMAILANDROIDAPP(POP/IMAPACCOUNT)
litmus ®
#LitmusLive
POP/IMAPACCOUNTS=NON-GMAILACCOUNTS
(i.e.@aol.com,@outlook.com,@yahoo.com)
~EMAILTHATLIVESOUTSIDEOFGMAIL’SSERVERS~
litmus ®
#LitmusLive
HOWTOIDENTIFYYOURPOP/IMAPAUDIENCE
1. Use email analytics
2. Choose representative sample of campaigns to
analyze based on your audience size
3. Select all opens from Gmail clients
4. Calculate number of non-Gmail addresses used to
ballpark total and percentage of POP/IMAP audience
https://blog.google/products/gmail/gmailify-best-of-gmail-without-gmail
GMAILIFYYOURNON-GMAILEMAILACCOUNTS
TOGETRENDERINGUPDATE
litmus ®
#LitmusLive
GMAILANDROIDAPP(POP/IMAP
ACCOUNT)DOESNOTSUPPORT
BACKGROUNDIMAGESATALL
❌
litmus ®
#LitmusLive
ISYOURCSS“INVALID”?
#2
(ACCORDINGTOGMAIL)
litmus ®
#LitmusLive
GMAILWILLSTRIPANYCSSTHATIS
INVALIDORITDEEMSINVALID
@KevinMandeville #CSSSummit
❌ td[class=“foo”] { }
✅ .foo { }
DONOTUSEATTRIBUTESELECTORS
@KevinMandeville #CSSSummit
@media {
@font-face { }
}
DONOTNESTCSS@DECLARATIONS
❌
@KevinMandeville #CSSSummit
=, *, /, $, %, , &, @,
^, {, }, [, ], (, ), ?,
|, <, >
DONOTUSETHESECHARACTERSINYOURCSS
@KevinMandeville #CSSSummit
VALIDATEYOURCSSUSINGW3C
https://jigsaw.w3.org/css-validator/
litmus ®
#LitmusLive
SIMPLYPLACEANY“INVALID”GMAIL
CSSINTHEIROWNSTYLEBLOCKS
@KevinMandeville #CSSSummit
<style>
.foo {
width: 50%;
}
@media screen and (-webkit-min-device-
pixel-ratio: 0) {
.foo { width: 100%; }
}
</style>
❌ GMAILWILLSTRIPTHISENTIRESTYLEBLOCK
“Invalid” to Gmail
@KevinMandeville #CSSSummit
<style>
.foo {
width: 50%;
}
</style>
<style>
@media screen and (-webkit-min-device-pixel-
ratio: 0) {
.foo { width: 100%; }
}
</style>
✅ GMAILWILLONLYSTRIPTHE2NDSTYLEBLOCK
“Invalid” to Gmail
✅
❌
litmus ®
#LitmusLive
AREYOUOVERGMAIL’S
8142CSSCHARACTERLIMIT?
#3
(THISCOUNTSALLSTYLEBLOCKS)
litmus ®
#LitmusLive
GMAILWILLSTRIPALLCSSSTYLEBLOCKS
ONCEITSURPASSES8142CHARACTERS
litmus ®
#LitmusLive
USECSSMINIFIERSTO
COMPRESSYOURCSS
(ORDOITBYHAND)
litmus ®
#LitmusLive
WEREIMAGESOFFBYDEFAULT&
THENTURNEDON?
#4
@KevinMandeville #CSSSummit
<style>
.foo { background: #333333; }
</style>
<p class="foo">
Lorem ipsum dolor sit amet, consectetur
adipisicing elit.
</p>
<img src="spacer.gif" alt="This image is
blocked." />
RAWMARKUP
Source:https://emails.hteumeuleu.com/troubleshooting-gmails-responsive-design-support-ad124178bf81
@KevinMandeville #CSSSummit
<div class="m159215f7d36ee7fd">
<style>
div.m159215f7d36ee7fd .m_3567455155959655244
foo { background: #333333; }
</style>
<p class="m_3567455155959655244foo">
Lorem ipsum dolor sit amet, consectetur
adipisicing elit.
</p>
<img alt="This image is blocked." />
</div>
PROCESSEDMARKUPWHENIMAGESAREBLOCKED...
Source:https://emails.hteumeuleu.com/troubleshooting-gmails-responsive-design-support-ad124178bf81
@KevinMandeville #CSSSummit
<div class="m159215f7d36ee7fd">
<style>
div.m159215f7d36ee7fd .m_3567455155959655244
foo { background: #333333; }
</style>
<p class="m_-8249599400804587256foo">
Lorem ipsum dolor sit amet, consectetur
adipisicing elit.
</p>
<img alt="This image is blocked." />
</div>
PROCESSEDMARKUPWHENIMAGESAREDOWNLOADED...
Source:https://emails.hteumeuleu.com/troubleshooting-gmails-responsive-design-support-ad124178bf81
@KevinMandeville #CSSSummit
<div class="m159215f7d36ee7fd">
<style>
div.m159215f7d36ee7fd .m_3567455155959655244
foo { background: #333333; }
</style>
<p class="m_-8249599400804587256foo">
Lorem ipsum dolor sit amet, consectetur
adipisicing elit.
</p>
<img alt="This image is blocked." />
</div>
CURRENTBUGWHERECLASSESCHANGEWHENIMAGESAREDOWNLOADED
Source:https://emails.hteumeuleu.com/troubleshooting-gmails-responsive-design-support-ad124178bf81
litmus ®
Some more
GMAILQUIRKS...
litmus ®
#LitmusLive
GMAILiOSAPPADDSSPACING
TORIGHT-HANDSIDEOFEMAIL
@KevinMandeville #CSSSummit
FORCEGMAILiOSTOFULL-WIDTH
CSS
.body {
min-width: 100vw;
}
HTML
<body class=“body”></body>
(*THISWILLIMPACTGMAILANDROIDPOP/IMAPVIEW)
@KevinMandeville #CSSSummit
FORCEADESKTOPVIEWONGMAILANDROIDPOP/IMAP
CSS
.gmailfix {
display: none;
display: none !important;
}
HTML
<div class="gmailfix" style=“white-space: nowrap; font:
15px courier; line-height: 0;">&nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp;</div>
litmus ®
#LitmusLive
GMAILCLIPSYOUREMAILAT102KB
(HTMLFILESIZE,NOTIMAGES)
@KevinMandeville #CSSSummit
USEHTMLMINIFIERSTOCOMPRESSYOURHTML
https://kangax.github.io/html-minifier/
(ORDOITBYHAND)
litmus ®
#LitmusLive
GMAILDISPLAYSDOWNLOADICON
FORANYUNLINKEDIMAGE
(TYPICALLYABOVE250x250DIMENSIONS)
@KevinMandeville #CSSSummit
<a href="http://litmus.com">
<img src="logo.jpg">
</a>
LINKIMAGESTOREMOVEDOWNLOADICON
litmus ®
How to
TARGETGMAIL
🎯
@KevinMandeville #CSSSummit
TARGETINGGMAIL+INBOXBYGMAIL
CSS
u ~ div .gmail {
/* Insert CSS here */
}
HTML
<div class=“gmail”></div>
@KevinMandeville #CSSSummit
TARGETINGGMAIL
CSS
u + .body section .gmail {
/* Insert CSS here */
}
HTML
<body class=“body”>
<section>
<div class=“gmail”></div>
</section>
</body>
@KevinMandeville #CSSSummit
TARGETINGINBOXBYGMAIL
CSS
u + .body > .inbox {
/* Insert CSS here */
}
HTML
<body class=“body”>
<section>
<div class=“inbox”></div>
</section>
</body>
litmus ®
Do we still need to
INLINEOURCSS?
litmus ®
#LitmusLive
99%of market share now supports embedded CSS
Source: Litmus Email Analytics
@KevinMandeville #CSSSummit
https://litmus.com/community/discussions/6116-here-s-why-litmus-didn-t-inline-css-for-its-first-newsletter-of-2017
LITMUSDIDN’TINLINECSSFORITSFIRSTNEWSLETTEROF2017
litmus ®
How important is
HYBRIDORFABFOURNOW?
litmus ®
RESOURCES
litmus ®
#LitmusLive
https://litmus.com/blog/gmail-to-support-responsive-email-design
litmus ®
#LitmusLive
https://litmus.com/blog/the-ultimate-guide-to-email-on-android
litmus ®
#LitmusLive
https://litmus.com/blog/3-keys-to-understanding-email-rendering-on-android
litmus ®
#LitmusLive
https://emails.hteumeuleu.com/troubleshooting-gmails-responsive-design-support-ad124178bf81
litmus ®
#LitmusLive
litmus.com/community
litmus ®
#LitmusLive
litmus.com/scope
litmus ®
#LitmusLive
litmus.com
litmus ®
Q&A

More Related Content

DOCX
Screenless display report
PDF
An introduction to M2M / IoT technologies
PPTX
Screenless display
PPTX
Virtual reality
PPTX
Graphic tablet (Input device)
DOCX
Abstract of raspberry pi
PPTX
EyeRing PowerPoint Presentation
PPTX
Holographic data storage
Screenless display report
An introduction to M2M / IoT technologies
Screenless display
Virtual reality
Graphic tablet (Input device)
Abstract of raspberry pi
EyeRing PowerPoint Presentation
Holographic data storage

What's hot (20)

PPTX
Haptics ppt
PPTX
Digital imaging system
PPTX
screen less display
PPT
Rainbow technology
PDF
Hemant Pandey resume
PDF
Augmented reality intro for mobile apps
PPTX
IoT based garbage monitoring system
PPTX
Haptic technology ppt
PPTX
Touchless Touchscreen Technology
PPT
MOBILE Ad-Hoc NETWORK (MANET)
ODP
Virtual Reality: A Step into Land of Imagination
PPT
Haptic Technology
PPTX
helium-filled-hard-drives.pptx
PPTX
Screenless displays ppt
DOCX
Augmented reality documentation
PPTX
Wireless Body Area network
PPTX
Haptic technology
PPTX
Screenless display technology
PPTX
A seminar presentation on INTERNET .
Haptics ppt
Digital imaging system
screen less display
Rainbow technology
Hemant Pandey resume
Augmented reality intro for mobile apps
IoT based garbage monitoring system
Haptic technology ppt
Touchless Touchscreen Technology
MOBILE Ad-Hoc NETWORK (MANET)
Virtual Reality: A Step into Land of Imagination
Haptic Technology
helium-filled-hard-drives.pptx
Screenless displays ppt
Augmented reality documentation
Wireless Body Area network
Haptic technology
Screenless display technology
A seminar presentation on INTERNET .
Ad

Similar to Everything You Need to Know About Gmail Rendering (20)

PDF
Beyond Email Open Rates: How to Unlock the Potential in Your Audience
PDF
[Webinar Slides] Gmail’s Responsive Email Updates
PDF
CSS Inlining in Email: What It IS + How To Do It
PDF
Wait. What just happened to my email?
PDF
Email Design Workshop - Don't Let Bad Email Code Ruin Your Day or Your Results
PDF
How to Optimize Email for All Inboxes in a Mobile World
PDF
NEDMA15: How to Optimize Email for all Inboxes in a Mobile World - Justine Jo...
PDF
WebSG - HTML Email Newsletters
PDF
Troubleshooting Email Like a Pro
PDF
Troubleshooting Email Like a Pro
PDF
Emailing 2020: Remi Parmentier
PDF
HTML Email: How not to feel 'boxed in'
PPTX
The Top 5 Opportunities for Improving Your Email Creative
PDF
Responsive HTML Email
PDF
Email responsive
PDF
Html Mail
PDF
33 "Must-Do" Tips to Improve HTML Email Design
PPTX
Mobile Email 2012
PPTX
How to Make Email Awesome: Digital Summit Charlotte 2015
PPTX
Tips & tricks to render your email correctly on all devices
Beyond Email Open Rates: How to Unlock the Potential in Your Audience
[Webinar Slides] Gmail’s Responsive Email Updates
CSS Inlining in Email: What It IS + How To Do It
Wait. What just happened to my email?
Email Design Workshop - Don't Let Bad Email Code Ruin Your Day or Your Results
How to Optimize Email for All Inboxes in a Mobile World
NEDMA15: How to Optimize Email for all Inboxes in a Mobile World - Justine Jo...
WebSG - HTML Email Newsletters
Troubleshooting Email Like a Pro
Troubleshooting Email Like a Pro
Emailing 2020: Remi Parmentier
HTML Email: How not to feel 'boxed in'
The Top 5 Opportunities for Improving Your Email Creative
Responsive HTML Email
Email responsive
Html Mail
33 "Must-Do" Tips to Improve HTML Email Design
Mobile Email 2012
How to Make Email Awesome: Digital Summit Charlotte 2015
Tips & tricks to render your email correctly on all devices
Ad

More from Litmus (20)

PDF
Litmus Live 2018 Workshop: Reinvent Your Email Workflow
PPTX
The Trends Transforming the Email Service Provider Landscape
PDF
Engaging Users with High-Performance Design
PDF
Litmus Live 2018: Reinvent Your Email Workflow
PPTX
Email Workflows that Work: 5 Trends to Help You Build Better Emails Faster
PDF
The State of Email in 2018: 5 Insights from the Litmus Marketing Team
PPTX
The Best of the 2017 State of Email Survey Research Series
PPTX
5 Embarrassing Subject Line Mistakes to Avoid
PPTX
Email Tactics Customers Hate and Why Marketers Continue to Use Them
PPTX
Email Marketing Kickoff for 2018
PPTX
20 Things Successful Email Marketing Programs Do
PPTX
The Root of Poor Email Deliverability
PPTX
8 Embarrassing Preview Text Mistakes + 4 Tips on How to Avoid Making Them
PDF
Troubleshooting Email Like a Pro
PPTX
Building Successful Email Workflows
PDF
Webinar: State of Email 2017
PDF
The biggest email marketing myths
PDF
10 Things Travel Brands Should Know About Their Email Subscribers
PPTX
3 Embarrassing Subject Line Mistakes to Avoid
PPTX
The State of Email 2016 - Year in Review
Litmus Live 2018 Workshop: Reinvent Your Email Workflow
The Trends Transforming the Email Service Provider Landscape
Engaging Users with High-Performance Design
Litmus Live 2018: Reinvent Your Email Workflow
Email Workflows that Work: 5 Trends to Help You Build Better Emails Faster
The State of Email in 2018: 5 Insights from the Litmus Marketing Team
The Best of the 2017 State of Email Survey Research Series
5 Embarrassing Subject Line Mistakes to Avoid
Email Tactics Customers Hate and Why Marketers Continue to Use Them
Email Marketing Kickoff for 2018
20 Things Successful Email Marketing Programs Do
The Root of Poor Email Deliverability
8 Embarrassing Preview Text Mistakes + 4 Tips on How to Avoid Making Them
Troubleshooting Email Like a Pro
Building Successful Email Workflows
Webinar: State of Email 2017
The biggest email marketing myths
10 Things Travel Brands Should Know About Their Email Subscribers
3 Embarrassing Subject Line Mistakes to Avoid
The State of Email 2016 - Year in Review

Recently uploaded (20)

PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
cuic standard and advanced reporting.pdf
PDF
Machine learning based COVID-19 study performance prediction
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Cloud computing and distributed systems.
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
DOCX
The AUB Centre for AI in Media Proposal.docx
PPT
Teaching material agriculture food technology
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Encapsulation theory and applications.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Approach and Philosophy of On baking technology
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Network Security Unit 5.pdf for BCA BBA.
cuic standard and advanced reporting.pdf
Machine learning based COVID-19 study performance prediction
sap open course for s4hana steps from ECC to s4
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Cloud computing and distributed systems.
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
The AUB Centre for AI in Media Proposal.docx
Teaching material agriculture food technology
Dropbox Q2 2025 Financial Results & Investor Presentation
Encapsulation theory and applications.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
MYSQL Presentation for SQL database connectivity
Spectral efficient network and resource selection model in 5G networks
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Reach Out and Touch Someone: Haptics and Empathic Computing
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Approach and Philosophy of On baking technology

Everything You Need to Know About Gmail Rendering