I'm struggling with the following code snippet:
<div id="container">
<div id="left">
[ some contents...]
</div>
<div id="right">
<div id="inner">
[ some templates... ]
</div>
</div>
</div>
In this code, I have two divs and I want the height of #right
to be fixed at the same height as #left
, even when the content in #inner
is longer and requires a vertical scrollbar. How can I achieve this? I've considered using table-cell display, but that method causes the first div to increase in height to match the height of #inner
.