<!DOCTYPE html>
<style>
body {
    position: relative;
    left: 0.5px;
}
.parent {
    display: inline-block;
    transform: scale(5);
    opacity: 0.8;
}
.child {
    position: absolute;
    width: 10px;
    height: 10px;
    background: red;
    border: 1px solid black;
}
</style>
<div class="parent">
    <div class="child"></div>
</div>