JSFiddle - React, Tailwind, and code Playground

HTML

<div id="outer">
    <div id="inner"></div>
</div>

CSS

#outer {
        width: 50%;
        background: yellow;
        position: relative;
        height: 200px;
    }
    #inner {
        width: 50%;
        background: blue;
        position: absolute;
        top: 25%;
        left: 25%;
        height: 100px;
    }