<html> <head> <style> body { margin: 0px; } #test { background: green; width: 100px; height: 100px; -moz-transform: scale(0.5, 0.5); } </style> </head> <body> <div id="test"> </div> </body> </html>