{"id":14144,"date":"2011-09-06T19:44:20","date_gmt":"2011-09-07T02:44:20","guid":{"rendered":"http:\/\/css-tricks.com\/?page_id=14144"},"modified":"2013-03-13T14:12:11","modified_gmt":"2013-03-13T21:12:11","slug":"zoom","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/properties\/z\/zoom\/","title":{"rendered":"zoom"},"content":{"rendered":"
The The “supported: values are:<\/p>\n If your browser supports it, you’ll see these images as different sizes:<\/p>\n Zoom is an old IE thing. It isn’t something you should use on live sites. If you want to scale content, use CSS Transforms<\/a>. You can also use filters<\/a> if you need oldIE<\/abbr> support.<\/p>\n Back in the days of IE6, zoom was used primarily as a hack. Many of the rendering bugs in both IE6 and IE7 could be fixed using zoom. As an example, Safari also supports The zoom property in CSS allows you to scale your content. It is non-standard, and was originally implemented only in […]<\/p>\n","protected":false},"author":1036,"featured_media":0,"parent":13961,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"page-almanac-single.php","meta":{"_acf_changed":false,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"sig_custom_text":"","sig_image_type":"featured-image","sig_custom_image":0,"sig_is_disabled":false,"inline_featured_image":false,"c2c_always_allow_admin_comments":false,"footnotes":"","_share_on_mastodon":"0","_share_on_mastodon_status":"%title% %permalink%"},"tags":[],"acf":[],"share_on_mastodon":{"url":"","error":""},"jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages\/14144"}],"collection":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/users\/1036"}],"replies":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/comments?post=14144"}],"version-history":[{"count":5,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages\/14144\/revisions"}],"predecessor-version":[{"id":20546,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages\/14144\/revisions\/20546"}],"up":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages\/13961"}],"wp:attachment":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/media?parent=14144"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/tags?post=14144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}zoom<\/code> property in CSS allows you to scale your content. It is non-standard, and was originally implemented only in Internet Explorer. Although several other browsers now support zoom, it isn’t recommended for production sites.<\/p>\n
.zoom {\r\n zoom: 150%;\r\n}<\/code><\/pre>\n
\n
percentage<\/code> – Scale by this percentage<\/li>\n
number<\/code> – Convert to percentage and scale – 1 == 100%; 1.5 == 150%;<\/li>\n
normal<\/code> – zoom: 1;<\/li>\n<\/ul>\n
<\/code>Check out this Pen!<\/a><\/pre>\n
display: inline-block<\/code> didn’t work very well in IE6\/7. Setting
zoom: 1<\/code> fixed the problem. The bug had to do with how IE rendered its layout. Setting
zoom: 1<\/code> turned on an internal property called hasLayout<\/a>, which fixed the problem.<\/p>\n
Other Resources<\/h3>\n
\n
transform<\/code><\/a><\/li>\n
Browser Support<\/h3>\n
\n\n
\n Chrome<\/span><\/th>\n Safari<\/span><\/th>\n Firefox<\/span><\/th>\n Opera<\/span><\/th>\n IE<\/span><\/th>\n Android<\/span><\/th>\n iOS<\/span><\/th>\n<\/tr>\n<\/thead>\n\n \n Any<\/td>\n 4.0+<\/td>\n None<\/td>\n None<\/td>\n 5.5+<\/td>\n TBD<\/td>\n TBD<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n zoom<\/code> since version 4. However, it added a new value:
reset<\/code>. That tells the browser not to zoom your element on zoom. So your cmd\/ctrl+? It doesn’t work on elements with
zoom: reset<\/code> applied. <\/p>\n","protected":false},"excerpt":{"rendered":"