JSFiddle - React, Tailwind, and code Playground
by blueseal
HTML
<div class="test">
<div class="div1">
I'm div 1
</div>
<div class="div2">
<div class="div-overlay">
overlay div
</div>
I', div 2
</div>
</div>
CSS
.test{
border: 1px solid black;
}
.div1{
position: relative;
display: "inline";
background: yellow;
height: 50px;
}
.div2{
position: relative;
display: "inline";
background: purple;
height: 50px;
}
.div-overlay{
position: absolute;
left: 100px;
top: -25px;
display: "inline";
background: red;
height: 50px;
width: 100px;
}