Please find my code fragment as below:
<table cellpadding="0" cellspacing="0" style="background-color:Aqua">
<tr>
<td>
<div style="background-color:Yellow">Navigation</div>
</td>
<td>
Content<br />Content<br />Content<br />Content<br />
</td>
</tr>
</table>
How can I make the height of <div> same as the content growth in <td>? I tried to set height=100% or AUTO in <div> and <td>, but it doesn't fix the problem.
I know it can be fix by using jQuery/JavaScript to get the height of content and set on the <div>, for example:
$(".divClass").height($(".contentClass").height());
but my content will be collapse and expanse upon user actions, so I looking for better fix. the solution has to be cross browser compatible for IE 6 to IE 10.