HTML CSS examples for CSS Animation:Zoom
Transform:Scale function in CSS
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .parent {<!-- www . j a va 2 s . c o m--> width:201px; background:blue; height:auto; } .child { transform:scale(0.6); background:red; } </style> </head> <body> <div class="parent"> <div class="child"> Lorem ipsum <br>Lorem ipsum d <br>Lorem ipsum <br>Lorem ipsum <br> </div> </div> </body> </html>