{"id":151,"date":"2011-09-05T22:14:51","date_gmt":"2011-09-06T03:14:51","guid":{"rendered":"http:\/\/cbateman.com\/blog\/?p=151"},"modified":"2014-10-09T22:38:40","modified_gmt":"2014-10-10T03:38:40","slug":"the-iphone-and-text-size-adjust","status":"publish","type":"post","link":"https:\/\/cbateman.com\/blog\/the-iphone-and-text-size-adjust\/","title":{"rendered":"The iPhone and text-size-adjust"},"content":{"rendered":"<p>I discovered an interesting oddity on the iPhone &#8211; when it&#8217;s in landscape orientation, it automatically bumps up your font sizes, in an attempt to increase the legibility of non-responsive sites. Of course if you weren&#8217;t planning on this, it presents a bit of a problem. At first I thought that I had messed up my viewport settings, which threw me off the trail. The solution turned out to be quite simple:<\/p>\r\n<pre class=\"pre\">-webkit-text-size-adjust:100%;<\/pre>\r\n<p>When it&#8217;s set to &#8216;auto&#8217; (the default value), the iPhone sets the value to somewhere around 135% when it&#8217;s in landscape. So head&#8217;s up!<\/p>","protected":false},"excerpt":{"rendered":"<p>I discovered an interesting oddity on the iPhone &#8211; when it&#8217;s in landscape orientation, it automatically bumps up your font sizes, in an attempt to increase the legibility of non-responsive sites. Of course if you weren&#8217;t planning on this, it presents a bit of a problem. At first I thought that I had messed up my viewport settings, which threw&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-151","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/cbateman.com\/blog\/wp-json\/wp\/v2\/posts\/151"}],"collection":[{"href":"https:\/\/cbateman.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cbateman.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cbateman.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cbateman.com\/blog\/wp-json\/wp\/v2\/comments?post=151"}],"version-history":[{"count":29,"href":"https:\/\/cbateman.com\/blog\/wp-json\/wp\/v2\/posts\/151\/revisions"}],"predecessor-version":[{"id":1381,"href":"https:\/\/cbateman.com\/blog\/wp-json\/wp\/v2\/posts\/151\/revisions\/1381"}],"wp:attachment":[{"href":"https:\/\/cbateman.com\/blog\/wp-json\/wp\/v2\/media?parent=151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cbateman.com\/blog\/wp-json\/wp\/v2\/categories?post=151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cbateman.com\/blog\/wp-json\/wp\/v2\/tags?post=151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}