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 14:15

dorayme <dorayme@optusnet.com.au> wrote:

>> <div style="width:100px; font-size:10px;
>> font-family:Arial,Verdana,sans-serif">
>> <table border="1" cellspacing="0" cellpadding="0">
>> <tr><td>some<br>long text</td><td>bar</td></tr>
>> </table>
>> <br>
>> <table border="1" cellspacing="0" cellpadding="0">
>> <tr><td>some long text</td><td>bar</td></tr>
>> </table>
>> </div>
>>
>> In all the browsers I've tested, the first table was clearly less
>> wide because the line break is a hard one rather than a soft one.
>> I wonder, is there a way to modify this behaviour in order to make
>> the second table appear in the same way as the first one?
>
> In the 2nd table, use <br> after the word "Some" and it will behave
> just like the first table.

While that is an obvious solution, I cannot do that, because the data in the
table comes from a database, and I do not know where the browser is going to
insert the soft line break.

The question is: Can I do something to make a soft line break inserted by
the browser have the same effect as a hard line break.

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

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