JSFiddle - React, Tailwind, and code Playground

HTML

<div class="cont">
  <div class="div1">DIV1</div>
</div>

CSS

.cont {position:relative; top:200px; left:100px; background: green; width: 200px; height:200px;}

.div1 {background:red; position:absolute; top:50px;}