'zoom' Example : zoom « CSS « HTML / CSS






'zoom' Example

    
<html>
<body>
<div id="myDiv" 
     style="width:100pt; 
            background-color:red;">
This is some sample text.
<br>
www.java2s.com
</div>
<button onclick="myDiv.style.zoom='200%'">Zoom 200%</button>
<button onclick="myDiv.style.zoom='100%'">Zoom 100%</button>
</body>
</html>

    
      
      








Related examples in the same category