JSFiddle - React, Tailwind, and code Playground
HTML
<div class="relative" >
<div class="absolute">absolute</div>
</div>
CSS
.relative{
position:relative;
top:100px;
left:100px;
width:500px;
height:500px;
background:blue;
}
.absolute{
position:absolute;
width:100px;
height:100px;
background:red;
top:30px;
left:50px;
}