I'm uncertain if it's feasible, but I am looking to determine the total height of the content within a specific container. Imagine 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 can I accurately find the height of the content within #container
? The inline heights provided are just samples to illustrate that the parent height could vary. I am interested in knowing the actual space occupied by the content. This is considering that there may be numerous child elements within the container.
Please note: In the example above, the true height refers to the combined height of those paragraphs if they were not displayed inline.