|
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]
|