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 Ben C on 10/30/06 07:39

On 2006-10-30, 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.

It probably does work. But you've asked for an inconsistent set of
things and letting the UA decide according to its arbitrary rules which
you care about the least. As you say, not a good way to do.


> What's the best way to do that?

Just set 100px on the first column and leave the other two to auto.

If the table itself has a width (100%) the UA will divide the extra
space evenly between the auto width columns.

Not sure where/if this is specified (that's the problem with tables),
but try it in all your browsers.

 

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

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