JSFiddle - React, Tailwind, and code Playground
HTML
<div class="p1">
<div class="child">Child 1</div>
Parent 1
</div>
<div class="p2">
<div class="child">Child 2</div>
Parent 2
</div>
CSS
html, body {height: 100%}
.p1 {
width: 50%;
height: 100%;
float: left;
background-color: cyan;
}
.p2 {
width: 50%;
min-height: 100%;
float: left;
background-color: green;
}
.child {
width: 50%;
height: 100%;
background-color: yellow;
float: right;
}