I have something like this
<div class="container">
    <div class="child-1">
        <div>children </div>
        <div>children </div>
    </div>
    <div class="child-2">
        something
    </div>
</div>
The container is flexbox, and takes 100% of its parent's height (which is calculated by height: calc(100vh - 75px);)
Now I want the div "child-1" to only take up the size of the children. Right now it is the height of its parent, which is essentially 100%.
I don't want to set an arbitrary height as in the "child-1" I have stuff that collapses and expands so the height is always changing.