I want to make a html table with single row, 2 columns.
The columns should fill the page with width in the ratio. 80% : 20%.
In the first column I want to have 3 rows to completely fill the first column.
Can anyone suggest something that works?
Thanks.
optimus203
06-03-2010, 11:02 PM
Something like this?
<table style="width:100%;">
<tr>
<td style="width:80%;">
<table style="width:100%;">
<tr>
<td>Row 1</td>
</tr>
<tr>
<td>Row 2</td>
</tr>
<tr>
<td>Row 3</td>
</tr>
</table>
</td>
<td style="width:20%;">Column 2
</td>
</tr>
</table>
Thanks very much.
This works. The problem is that the first three rows from the first column dont fill the width of the column.
Any ideas?
My tag had a small error with a semicolon at the wrong place. It works now! thanks heaps.
_Aerospace_Eng_
06-03-2010, 11:58 PM
Tables aren't meant for page layout. If you are displaying data, then fine but otherwise you shouldn't use a table.
optimus203
06-04-2010, 12:03 AM
Aerospace is absolutely right. If your using this table for layout purposes, you should go strictly Div based.