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

Posted by Neredbojias on 08/03/05 15:24

With neither quill nor qualm, Dominik Jain quothed:

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

Why would it in the second case?

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

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

I think you're viewing this a trifle askew, matey.

--
Neredbojias
Contrary to popular belief, it is believable.

 

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

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