property
Zoom — CSS reference
Magnifies an element and affects layout, unlike a visual transform that normally leaves the allocated space unchanged. A numeric factor of 1.5 scales a 100px box to 150 CSS pixels in its bounding rectangle. It is not a substitute for user-controlled page zoom.
Formal Syntax & Structure
css syntaxcss
zoom: 1.5;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>zoom</title><style>body{margin:8px;background:white;color:black;font:16px/20px sans-serif}*{box-sizing:content-box}#a{width:100px;height:40px;zoom:1.5;background:blue}</style><body><div id="a">Example text</div></body></html>