You are here: Re: Tables: Fixing the column widths absolutely ? « HTML « IT news, forums, messages
Re: Tables: Fixing the column widths absolutely ?

Posted by Neredbojias on 10/17/07 15:30

Well bust mah britches and call me cheeky, on Wed, 17 Oct 2007 12:47:41 GMT
Alan Searle scribed:

> Hi everyone,
>
> I have a table which, in order to line up with other information, needs
> to have very exact column widths.
>
> So far I have implemented the following with normal HTML tables ...
>
> <td align="RIGHT" width="77">
>
> ... which works OK most of the time.
>
> However, sometimes the data contained in the table overshoots the column
> width and the table starts to 'distort' which completely messes up my
> presentation.
>
> Maybe someone has a suggestion for setting the column widths exactly?
> Here I am wondering if there is a relationship with the declared table
> width? Or whether there is a setting that can be switched on or off to
> force exact width?
>
> Many thanks for any tips you can give me.

From my experience, table cells will always expand to content - at least in
some browsers - no matter if the css attribute table-layout:fixed; is set
or not.

One thing you can try is a div (inside the cell) set to the appropriate
width and overflow:hidden;

--
Neredbojias
Half lies are worth twice as much as whole lies.

 

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

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