JSFiddle - React, Tailwind, and code Playground
HTML
<div id="parent">
<div id="child"></div>
</div>
CSS
#parent {
position:absolute;
width:100px;
height:100px;
background-color:red;
z-index: 100;
}
#child {
position:absolute;
width:50px;
height:50px;
background-color:green;
z-index: 1;
}