JSFiddle - React, Tailwind, and code Playground

HTML

<div id="parent">
<div id="child"></div>
</div>

CSS

#parent { 
    position: relative;
    border: solid 1px #000; 
    width: 200px; 
    height: 200px; 
}

#child { 
    position: absolute;
    top: 10px;
    right: -50px;
    border: solid 1px #000; 
    width: 50px; 
    height: 50px; 
}