I have an outer div that contains three inner divs.
I want the leftmost inner div to always determine the height of the outer div. If the other inner divs have less content [than the leftmost div], they will have empty space. If they have more content [than the leftmost div], they will get a scrollbar.
Some other questions on SO ask how to set the height of an outer div to the height of an inner div. However, in my case, I have multiple inner divs, and I don't know if the height of the outer div is greater or less than the height of the leftmost div.
Is there any way to do this, specifically using only CSS?
different way. Two examples:
One idea is to use absolute positioning to separate some content from the flow so it doesn't have any effect on the height, and then use Flexbox as the main layout: