JSFiddle - React, Tailwind, and code Playground
HTML
<div>
<span>
other
</span>
</div>
CSS
div{
height: 300px;
position: relative;
background: red;
}
span {
display: block;
height: 100%;
background: yellow;
}