JSFiddle - React, Tailwind, and code Playground
by ashwyn
HTML
<div class="p">
<div class="c"></div>
</div>
CSS
div {border:1px solid #000}
.p {
position:relative;
width:100px; /*width will be unknown*/
height:80px;
background:#999;
}
.c {
position:absolute;
width:40px;
height:30px;
background:red;
top:0;
/*right:don't know*/
}