HTML CSS examples for CSS Widget:Hover Image
Hover to scale image using transform
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> img {<!--from ww w . ja v a 2 s . co m--> height:51px; width:51px; background-color:Chartreuse; } img:hover { transform:scale(3); -ms-transform:scale(3); -webkit-transform:scale(3); } </style> </head> <body> <table> <tbody> <tr> <td> <img src="https://www.java2s.com/style/demo/InternetExplorer.png"> </td> <td> <img src="https://www.java2s.com/style/demo/InternetExplorer.png"> </td> </tr> <tr> <td> <img src="https://www.java2s.com/style/demo/Safari.png"> </td> <td> <img src="https://www.java2s.com/style/demo/Opera.png"> </td> </tr> </tbody> </table> </body> </html>