Currently, I have a section tag with three divs inside that are positioned absolute (used for the isotope plugin).
<section id="section1" class="cd-section"> // pos. static/relative has height 0px
<div class="itemIso"> // pos. absolute, height ~900px
div1
</div>
<div class="itemIso"> // pos. absolute, height ~700px
div2
</div>
<div class="itemIso"> // pos. absolute, height ~600px
div3
</div>
</section>
Check out this image: https://i.stack.imgur.com/UIqQr.png
The issue I'm facing is that since the divs have position absolute and the section1 is static/relative, its height is 0. I want it to be the sum of the heights of the divs, which in this case would be 900+700+600=2200px. However, as I have six of these sections, setting a fixed height is not ideal since it might change.
Is there any jQuery, JavaScript, or other solution to solve this problem?