You are here: Re: fixed-width column and variable-width columns mixed « HTML « IT news, forums, messages
Re: fixed-width column and variable-width columns mixed

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация