I am looking to create a layout similar to the following:
|---| |------------|
| | | b |
| a | |____________|
| | |------------|
|___| |______c_____|
Here is the code I have so far:
<table>
<tr>
<td class="leftSide">a</td>
<td class="rightSide">
<div class="mainContent">b</div>
<div class="bottomContent">c</div>
</td>
</tr>
</table>
In this design, if the combined height of b
and c
exceeds that of box a
, box a
's height will adjust accordingly. This functionality works because the .rightSide
element is set to display: table
, with divs b
and c
being set to display: table-row
.
However, in cases where the content within box a
causes it to be taller than the right side, the heights of elements inside the right side do not adjust accordingly. While the containing td
resizes, its contents do not. Is there a way for b
(.mainContent
) to fill the remaining height when this occurs?