'zoom' Example : zoom : CSS Attributes and Javascript Style Properties HTML CSS TUTORIALS


HTML CSS TUTORIALS » CSS Attributes and Javascript Style Properties » zoom »

 

'zoom' Example



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

    
      
      



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo CSS Attributes and Javascript Style Properties
» zoom