{"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 Internet Explorer. Although several other browsers now support zoom, it isn’t recommended for production sites. .zoom { zoom: 150%; } The “supported: values are: percentage – Scale by this percentage number – Convert to percentage […]<\/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":{"_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":""},"tags":[],"acf":[],"jetpack-related-posts":[{"id":165586,"url":"https:\/\/css-tricks.com\/snippets\/html\/responsive-meta-tag\/","url_meta":{"origin":14144,"position":0},"title":"Responsive Meta Tag","date":"March 13, 2014","format":false,"excerpt":"I tend to use this: Although I see this is recommended a lot: This means that the browser will (probably) render the width of the page at the width of its own screen. So if that screen is 320px wide, the browser window will be 320px wide, rather than way\u2026","rel":"","context":"With 56 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":330622,"url":"https:\/\/css-tricks.com\/video-screencasts\/200-scroll-to-zoom\/","url_meta":{"origin":14144,"position":1},"title":"#200: Scroll to Zoom","date":"December 10, 2020","format":false,"excerpt":"Fair warning: you aren't going to need this every day! I just happened to be looking at a neat little SVG warping tool that had a feature where my mouse scroll wheel (or trackpad) could be used to zoom the working area in and out. We dug in to play\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2020\/12\/thumb-scroll.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":280309,"url":"https:\/\/css-tricks.com\/almanac\/properties\/t\/touch-action\/","url_meta":{"origin":14144,"position":2},"title":"touch-action","date":"January 2, 2019","format":false,"excerpt":"The touch-action property in CSS gives you control over the effect of touchscreen interactions with an element, similar to the more widely-used pointer-events property used to control mouse interactions. #element { touch-action: pan-right pinch-zoom; } The touch-action property is useful primarily for interactive UI elements that need slightly different behavior\u2026","rel":"","context":"In \"pointer-events\"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":14043,"url":"https:\/\/css-tricks.com\/almanac\/properties\/c\/cursor\/","url_meta":{"origin":14144,"position":3},"title":"cursor","date":"September 5, 2011","format":false,"excerpt":"The cursor property in CSS controls what the mouse cursor will look like when it is located over the element in which this property is set. Obviously, it's only relevant in browsers\/operating systems in which there is a mouse and cursor. They are used essentially for UX to convey the\u2026","rel":"","context":"In \"cursor\"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":311020,"url":"https:\/\/css-tricks.com\/almanac\/properties\/t\/text-underline-offset\/","url_meta":{"origin":14144,"position":4},"title":"text-underline-offset","date":"May 18, 2020","format":false,"excerpt":"The text-underline-offset property in CSS sets the distance of text underlines from their initial position. .element { \u00a0 text-underline-offset: 0.5em; } Once you apply an underline for an element using text-decoration with the value of underline, you can say how far that line should be from your text using the\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3289,"url":"https:\/\/css-tricks.com\/snippets\/css\/clear-fix\/","url_meta":{"origin":14144,"position":5},"title":"The Clearfix: Force an Element To Self-Clear its Children","date":"August 10, 2009","format":false,"excerpt":"This will do you fine these days (IE 8 and up): .group:after { content: \"\"; display: table; clear: both; } Apply it to any parent element in which you need to clear the floats. For example: You would use this instead of clearing the float with something like at the\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_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":"