<!DOCTYPE html>
<html>
<head>
<style>
    .container {
        position: relative;
        width: 30px;
        height: 30px;
        margin: 20px;
        border: 1px solid silver;
    }

    .box {
        position: absolute;
        background-color: gray;
    }

    .shadow {
        position: absolute;
        background-color: blue;
    }
    </style>
</head>
<body>
    <div class="container">
        <div class="shadow" style="left: 0; top: 0; width: 12px; height: 12px;"></div>
        <div class="box" style="left: 1px; top: 1px; width: 10px; height: 10px;"></div>
    </div>

    <div class="container">
        <div class="shadow" style="left: 0.5px; top: 0.5px; width: 11px; height: 11px;"></div>
        <div class="box" style="left: 1px; top: 1px; width: 10px; height: 10px;"></div>
    </div>

    <div class="container">
        <div class="shadow" style="left: 0.5px; top: 0.5px; width: 11.5px; height: 11.5px;"></div>
        <div class="box" style="left: 1px; top: 1px; width: 10.5px; height: 10.5px;"></div>
    </div>

</body>
</html>
