You are here: Re: i cant seem to work out how to do this...think you could help « HTML « IT news, forums, messages
Re: i cant seem to work out how to do this...think you could help

Posted by Leonard Blaisdell on 08/26/05 06:13

In article <1125024563.778448.153770@g44g2000cwa.googlegroups.com>,
"ben" <lessani@gmail.com> wrote:

> lol, no, that table was an example, the actual previous one is far too
> big to post here. but the idea is that the widths are fluid (?), so
> when the content of the cell is too large, it automatically deducts the
> available width from the remaining cells not using it

With a table width of 100% and no other constrictions, your td cells
will expand to the maximum of the content width within them that
conforms to the constriction of 100% width of the entire table and keeps
them inline to one another. That is, the longest td will define the
width of all others in it's column. If the table is at 100% and there
are no width attributes defined for tr or td, the table width will grow
or shrink and td content will drop down to fill the available
constricted space in it's column depending on the size of the browser
window.
If you want to define column size, you will have to discuss overflow and
stuff that I'm not familiar with, with those that use it in their CSS.
Otherwise, give your table a width of 100% and make sure you have no
other width restrictions in tr or td. Your table will grow or shrink
depending on the window size of your visitors. No CSS required.

leo

--
<http://web0.greatbasin.net/~leo/

 

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

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