JSFiddle - React, Tailwind, and code Playground

by FakeHeal

HTML

<div class="div1">1st</div>
<div class="div2">2nd</div>

CSS

div.div1{background: #999; height: 78px;}
div.div2{ background: #666; }

JavaScript

$(document).ready(function() {
    var docHeight = $(document).height();
    var div1Height = $('.div1').height();
    var div2Height = docHeight - div1Height;
    $('.div2').css('height', div2Height);
});