I have a div element that I want to center in the middle of the page, but when I add transform: scale(3), it's not centered anymore. The div is 112px in width and height and I dont want to use position nor left/right/top/bottom.
body {
display: flex;
justify-content: center;
align-items: center;
}
.scale {
transform: scale(3);
}
div {
width: 112px;
height: 112px;
background: #333;
}
<body>
<div class="scale"></div>
</body>
How can I center the div while scaling it up?