PDA

View Full Version : Fixing the table width and height


qazs
07-16-2003, 10:01 AM
Hi,
How can I fix a table width, so that the table will only hold a line of text with only 20 characters, and more than that, automatically proceed to the next line?

Right now, if the text are written without any line breaks,
it will distort my table.

Thanks.

Mr J
07-24-2003, 11:01 PM
Are these 20 characters words or is it one continuous string

Roy Sinclair
07-24-2003, 11:36 PM
Table cells will always stretch to fit your text content unless you use CSS to clip the overflow. If you want text content to break the text must have a natural breakpoint in it somewhere.

YawAhyiah
07-26-2003, 06:25 AM
I set the cell widths for my 7-col table to fixed values using CSS:

td { width: 14%;}
and the lines continued automatically, if needed, on the next line within the cells.

Mr J
07-26-2003, 07:29 AM
14% is not exactly a fixed width as this will change the actual pixel width of the column depending on the viewers resolution

100px is a fixed width