JSFiddle - React, Tailwind, and code Playground

by Sunil Choudhary

HTML

<span id="resultHeight"></span>
<header></header>
<div class="container">

</div>

CSS

header{height:474px;}
.container{height: 150px;}

JavaScript

var headerHeight = parseInt($('header').outerHeight());
    console.log(headerHeight);
    var containerPT = parseInt($(".container").outerHeight());
    console.log(containerPT);
    var totalSpace = (headerHeight + containerPT)+"px";
    $("#resultHeight").html(totalSpace);