Is there a way to perfectly center a div both vertically and horizontally while using -webkit-transform for scale transformation?
For instance, have a look at this example:
<body>
<div class="center" style="-webkit-transform: scale(0.20);">
<iframe src="http://www.youtube.com/embed/dgZ-K87NcwQ" width="2000" height="1200"></iframe>
</div>
</body>
div.center iframe {
display: block;
margin-left: auto;
margin-right: auto;
}
Appreciate any help with this! Thank you.