jimmyshoes
Programmer
I have been doing an experiment and have found that unlike divs nested tables do not stretch to 100% of the width.
regardless of the ins and outs of using nested tables, I'd be interested to learn why this is.
regardless of the ins and outs of using nested tables, I'd be interested to learn why this is.
Code:
<table width="100%">
<tr>
<td>
<table width="100%">
<tr>
<!-- This stretches to about 98 % of screen width -->
<td><div style="border-bottom: #000000 1px solid"></div></td>
</tr>
</table>
</td>
</tr>
</table>
<br />
<!-- This stretches to 100% of screen width -->
<div style="border-bottom: #000000 1px solid"></div>