I have two divs:
<div class="wrapper">
<section id="left-panel"></section>
<section id="right-panel"></section>
</div>
I have the height of right-panel
to always equal height of left-panel
. How do I accomplish this using CSS only?
This is not the same as saying I want them to be same height. I want the height to be the same, but only to the maximum of the left-panel height. So if right panel is taller, then it should be clipped at the bottom and become an overflow and still respect the height of the left panel.
Also, the content of left panel is not dynamic, but it is not the same across all pages, so I cannot set max-height
on the left panel.