The zoom property in CSS is used to scale-up or scale-down the content. This property was implemented for Internet Explorer before the latter is supported by a few other browsers.
zoom: percentage | number | normal;
Property Value: This property accepts three types of values as mentioned above and described below:
- percentage: This property holding the numbers with the percentage that will increased or decreased compared to the original content makes that zoom-in or out depending on the numbers like
zoom:150%;. It means the content will be 150% percentage bigger than the original content.
- number: This property holds the number that will be multiplied by the original content makes that zoom-in or out depending on the number like
zoom:1.5;. It means the content will be 1.5 times bigger than the original content.
- normal: This property holds the normal content which is not zoomed in or out, basically this property is telling the browsers
Example: This example uses CSS zoom property to resize the image.
Supported Browsers: The browsers supported by CSS zoom property are listed below:
- Google Chrome
- Internet Explorer
- Zoom Functionality in ElectronJS
- How to zoom an element on Hover using CSS ?
- Google Maps | Zoom
- How to disable zoom on a mobile web page using CSS?
- How to zoom in on a point using scale and translate ?
- How to Zoom an Image on Mouse Hover using CSS ?
- How to adjust CSS for specific zoom level?
- CSS | transition-property Property
- CSS | nav-up property
- CSS | nav-down property
- CSS | top Property
- CSS | right Property
- CSS | all Property
- CSS | nav-right property
- CSS | order property
- Web API | DOMRectReadOnly x property
- HTML | DOM URL Property
- Web API | DOMRectReadOnly y property
- CSS | align-self Property
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.