JSFiddle - React, Tailwind, and code Playground

HTML

<div id="a">
</div>
<div id="b">
</div>

CSS

#a {
    position: absolute;
    height: 100px;
    width: 100px;
    background-color: turquoise;
    margin-left: 30%;
}

#a::before{
    content: "";
    position:absolute;
    height: 50px;
    width: 50px;
    background-color: tomato;
    left: -50px;
    margin-bottom: 30%;
}

/* #b {
    position:absolute;
    height: 50px;
    width: 50px;
    background-color: tomato;
    margin-left: 23.7%;
    margin-bottom: 30%;
} */