Posted by dorayme on 10/30/06 02:41
In article
<1162166806.265453.46620@m7g2000cwm.googlegroups.com>,
"ssk" <sam.s.kong@gmail.com> wrote:
> Hi,
>
> I want to have a table with 3 columns.
> The table's width is 100%.
> 1st column's width should be 100 px.
> The other 2 columns are variable-width but they should be the same.
>
> One option is that:
> Table: 100%
> 1st column: 100 px
> 2nd column: 50%
> 3rd column: 50%
>
> That might work but I don't think it's way to go.
>
> What's the best way to do that?
>
This is one way to go:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
</head>
<body>
<table style="width:100%;margin:0;padding:0;"><tr>
<td style="width:100px;">jashdfjkdsh</td>
<td>
<table style="width:100%;margin:0;padding:0;"><tr>
<td style="width:50%;">jashdfjkdsh</td>
<td style="width:50%;">hgjjhghjg mmmm nnn jkgkjh</td>
</tr></table>
</td>
</tr></table>
</body>
</html>
No doubt there is better still.
--
dorayme
[Back to original message]
|