|
Posted by Dominik Jain on 08/03/05 14:27
Dominik Jain <djain@gmx.net> 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>
To clarify:
Since the containing div has width 100, the first column will have a line
break after the word "some" in both cases. 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.
Is there a way to get around that?
On the real page, I have 3 columns and 1 row per table. All the coluimns may
contain one or two lines after the insertion of soft line breaks. I would
like to have the automatic sizing of column according that happens in
tables, but I would like to avoid columns getting broader when soft line
breaks would allow a shorter width, in order to minimize the spacing between
columns.
bye,
--
Dominik Jain
http://home.cs.tum.edu/~jain
[Back to original message]
|