JSFiddle - React, Tailwind, and code Playground
HTML
<div id="body" style="background-color:red; height:100px; width:100px;">
Body
</div>
<div id="title" style="background-color:blue; height:200px; width:100px;">
Title
</div>
JavaScript
$(window).bind('resize', function () {
//$('#body').css('height', '200px'$('#title').height());
$('#body').css('min-height', $(window).height() - $('#title').height());
});