{"id":1229,"date":"2014-12-10T18:23:53","date_gmt":"2014-12-10T18:23:53","guid":{"rendered":"http:\/\/freshinbox.com\/blog\/?p=1229"},"modified":"2016-08-31T17:24:52","modified_gmt":"2016-08-31T17:24:52","slug":"gmail-on-ios-increases-font-size-on-some-emails","status":"publish","type":"post","link":"https:\/\/freshinbox.com\/blog\/gmail-on-ios-increases-font-size-on-some-emails\/","title":{"rendered":"Gmail iOS App Increases Email Font Size and What You Can Do About It"},"content":{"rendered":"<p><B>UPDATE 8\/31\/2016:<\/B> The fix for issue <a href=\"https:\/\/freshinbox.com\/blog\/gmail-supports-displaynone-and-gmail-ios-font-fix-update\/\">has been updated<\/a>.<BR><BR><\/p>\n<div style=\"max-width:450px;margin:0 auto;padding:10px;border:1px solid #888888;text-align:center;\">\nNote: This is different from the Gmail Android email width issue.<BR> For the Gmail Android issue, use a <a href=\"https:\/\/litmus.com\/community\/code\/274-force-gmail-app-to-render-desktop-version#comment-1351\">spacer image with min-width<\/a>.\n<\/div>\n<p><BR><\/p>\n<p>Late yesterday Brad form <a href=\"http:\/\/mixmax.com\" title=\"MixMax\">MixMax<\/a> noticed that the Gmail iOS app added a notice at the top of some emails that seemed to suggest that Gmail has started to support Media Queries<BR><BR><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/freshinbox.com\/blog\/wp-content\/uploads\/2014\/12\/gmail-font-message.jpg\" alt=\"Gmail Font Size Increase Message\" width=\"400\" height=\"188\" class=\"aligncenter size-full wp-image-1236\" \/><BR><\/p>\n<p>However on further inspection it appears that the Gmail app on the iPhone and iPad are merely increasing the font size in some emails. <\/p>\n<p>For the most part, this change has improved the experience on Gmail as it has made previously small fonts legible. However in other emails it has made the experience much worse, primarily by causing lines to wrap and breaking designs.<\/p>\n<p><b>Gmail really should just bite the bullet and support media queries just like the iOS and Android email clients. That way, designers can decide on the best font size for viewers on mobile and desktop clients.<\/b><BR><BR><\/p>\n<p><a href=\"https:\/\/freshinbox.com\/blog\/wp-content\/uploads\/2014\/12\/airbnb-gmail.jpg\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/freshinbox.com\/blog\/wp-content\/uploads\/2014\/12\/airbnb-gmail.jpg\" alt=\"Airbnb Email\" width=\"500\" height=\"450\" class=\"aligncenter size-full wp-image-1237\" \/><\/a><BR><BR><\/p>\n<p><a href=\"https:\/\/freshinbox.com\/blog\/wp-content\/uploads\/2014\/12\/bodyshop-gmail.jpg\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/freshinbox.com\/blog\/wp-content\/uploads\/2014\/12\/bodyshop-gmail.jpg\" alt=\"BodyShop in Gmail\" width=\"500\" height=\"458\" class=\"aligncenter size-full wp-image-1245\" \/><\/a><BR><BR><\/p>\n<h4>Font size increased by over 50%<\/h4>\n<p>It appears that the only change is the font size. However from my crude measurements it looks like Gmail increases all font sizes by over 50% which is significant and causes many lines to wrap. This is both for fonts set in px as well as em.<BR><BR><\/p>\n<h4>Screen Width Dependency<\/h4>\n<p>I also noticed that not all emails are modified, in fact quite a number of emails such as those from Brookstone and Target were left alone, with tiny text and all.<\/p>\n<p>I came to the conclusion that gmail applies this change to emails containing any element that is wider than the current viewing window size. For example when viewed in potrait mode on an iPhone 6 Plus, emails with tables wider than 400px triggers the font size change, but when viewed in landscape mode, the email is not modified until the table width is over 700px. Similarly on the iPad the modifications are triggered at approximately 625px in potrait mode.<BR><BR><\/p>\n<div style=\"max-width:400px;margin:20px auto;padding:10px;border:2px solid #AC88AC;text-align:center;border-radius:3px;\">\nDid you know you could create interactive emails with CSS?<br \/>\n<a href=\"https:\/\/freshinbox.com\/resources\/tools\/carousel\/\">Try out the Image Carousel for Email Tool<\/a>.\n<\/div>\n<p><BR><\/p>\n<h4>A Quick Fix<\/h4>\n<p>However I noticed some emails such Brookstone were 640px wide yet did not trigger Gmail&#8217;s font size changes. After more sleuthing, I found out that if the white-space: nowrap style is applied to text and if increasing the text size would cause the email width to be widened beyond the window width (causing the email to look really bad), that Gmail somehow senses it and backs off on applying the font size change.<\/p>\n<p>After some experimentation I came up with a snippet of code that would prevent Gmail from applying the font size change to your email. If Gmail&#8217;s font size change causes your email to look particularly broken, you might want to try putting this code at the bottom of your email above the closing body tag to prevent the font size changes until you get a chance to make design changes. <\/p>\n<p><B>UPDATE 8\/31\/2016:<\/B> The following fix <b>no longer works<\/b> see <a href=\"https:\/\/freshinbox.com\/blog\/gmail-supports-displaynone-and-gmail-ios-font-fix-update\/\">the updated fix here<\/a>.<BR><BR><\/p>\n<pre class=\"lang:default decode:true \" >\r\n&lt;div style=\"display:none; white-space:nowrap; font:15px courier; color:#ffffff;\"&gt;\r\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\r\n&lt;\/div&gt;<\/pre>\n<p>If your email is 700px or wider, add 5 or 6 more dashes and spaces to prevent Gmail from bumping the fonts on the iPad. If you have a long email, you might consider putting this snippet closer to the top and adding line-height:0px so it minimizes the vertical whitespace.<\/p>\n<p><b>Update May 8 2015:<\/b><br \/>\nAlex Williams (<a href=\"https:\/\/twitter.com\/alexcwilliams\" target=\"_blank\">@alexcwilliams<\/a>) discovered that Google (of all companies) <a href=\"https:\/\/twitter.com\/alexcwilliams\/status\/591313524175015936\" target=\"_blank\">uses a similar snippet<\/a> but uses non-breaking space (&amp;nbsp;) instead of &#8216;-&#8216; for their Analytics newsletter, which is an improvement from the one above since it doesn&#8217;t require you to mess with font colors:<\/p>\n<pre class=\"lang:default decode:true   \" >&lt;div style=\"display:none; white-space:nowrap; font:15px courier; line-height:0;\"&gt;\r\n&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; \r\n&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; \r\n&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\r\n&lt;\/div&gt;<\/pre>\n<p>Explanation:<\/p>\n<ul>\n<li> The white-space:nowrap with the dashed line creates a line about 500px across that when bumped up in size will exceed 700px causing the Gmail app to not apply the font change.<BR><BR>\n<li> The display:none style causes non-Gmail clients to hide the block (Gmail ignores display:none). When the email is viewed in say, a non-Gmail mobile client, it won&#8217;t affect your responsive layout.<BR><BR>\n<li>The font is set to white so the dashes are not displayed when viewed in Gmail. If you have a different color background, set it to your background color.<BR>\n<\/ul>\n<p>As always, after making any changes, test! :)<BR><BR><\/p>\n<div style=\"padding:10px; border: 2px solid #99C731;background-color:#FFF8DC;border-radius:5px;\">\n<form action=\"https:\/\/freshinbox1.createsend.com\/t\/i\/s\/adrmi\/\" method=\"post\" id=\"subForm\">\n<span class=\"fisub_header\" style=\"font-weight:bold;\">Subscribe to the #EmailGeeks Newsletter<\/span>\n<p><input id=\"fieldEmail\" name=\"cm-adrmi-adrmi\" type=\"email\" style=\"width:90%\" required placeholder=\"Your Email Address\" \/><\/p>\n<p><button type=\"submit\">Subscribe<\/button><\/p>\n<\/form>\n<\/div>\n<p><BR><BR><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Gmail app on IOS is increasing the font size in some emails. For the most part, this change has improved the experience on Gmail as it has made previously small fonts legible. However in other emails it has made the experience much worse, primarily by causing lines to wrap and breaking designs&#8230;<\/p>\n","protected":false},"author":2,"featured_media":1247,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2,46],"tags":[],"_links":{"self":[{"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/posts\/1229"}],"collection":[{"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/comments?post=1229"}],"version-history":[{"count":39,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/posts\/1229\/revisions"}],"predecessor-version":[{"id":3023,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/posts\/1229\/revisions\/3023"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/media\/1247"}],"wp:attachment":[{"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/media?parent=1229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/categories?post=1229"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/tags?post=1229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}