I'm not even sure if this is possible but I want to get the height of the contents in a container. Let's assume I have
<div id="container" style="min-height:100vh">
<div class="child">
<p>Some text here</p>
</div>
<div class="another-child">
<p>Some text here</p>
</div>
</div>
How do I get the true height of the content of #container
? Those inline heights are just as example to show parent height could be anything. I want to know how much the content are truly occupying. Again assuming that there could be an arbitrary number of child tags.
note in the example above the true height is the height of those paragraphs combined if they aren't inline.