You are here: Re: how to prevent unnecessary table resizing « HTML « IT news, forums, messages
Re: how to prevent unnecessary table resizing

Posted by Dominik Jain on 08/03/05 17:29

Neredbojias <neredbojias@neredbojias.com> wrote:

>> Since the containing div has width 100, the first column will have a
>> line break after the word "some" in both cases.
>
> Why would it in the second case?

Because 100 pixels aren't enough to fit the words "some long text" in a
single line using the given font size.

I've put the code online, so you can see what I mean:
http://cvsnix.lrt.mw.tu-muenchen.de/~jain/test.htm

>> The widths of the tables differ
>> greatly, however, because in the second table the browsers use the
>> length of the entire sentence as a basis for resizing the column.
>> The soft line breaks they insert are not taken into consideration.
>
> What do you want it to do, break after the first soft line break? Is
> the cell width fixed?

Of course not. I want cell width to be automatic.
What I want to avoid is the unnecessary spacing that results from the
insertion of soft line breaks. (see second table)

bye,

--
Dominik Jain
http://home.cs.tum.edu/~jain

 

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

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