JSFiddle - React, Tailwind, and code Playground
by vasi_32
HTML
<div id="height"></div>
<div id="container" style="min-height:100vh">
<div class="child cc">
<p>Some </br></br>text here</p>
</div>
<div class="another-child cc">
<p>Some text here</p>
</div>
</div>
CSS
p{
margin:0px;
}
JavaScript
var cc = 0;
$("#container > div.cc").each(function(){
cc += $(this).outerHeight();
});
$('#height').append('<p>'+ cc+'</p>' );