JSFiddle - React, Tailwind, and code Playground
HTML
<div class="parent">
<div id="first" class="child">
</div>
</div>
<div class="parent">
<div id="second" class="child">
</div>
</div>
CSS
*, *:before, *:after {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.parent {
width:300px;
height:200px;
padding:20px;
margin:0 0 10px 0;
position:relative;
border:1px solid #999;
}
.child {
width:100%;
height:100%;
background:#000;
}
#first {
position:absolute;
top:0;
left:0;
}