PDA

View Full Version : Legitamate Tables Question!


NancyJ
09-14-2005, 04:09 PM
I have a table and I want the ths to fit exactly to their contents and be no larger than that and I want the tds to take up the rest of the space (width of table is a %)
Is this possible?
Currently when switching between data tables the columns 'jump' about because the table stays the same width but the content isnt always the same width (the headers are all the same for the different tables)

nikkiH
09-14-2005, 05:59 PM
Not that I know of.

Why don't you just not use percents for widths?
Instead, use pixels or something and set the cells to wrap...?

ronaldb66
09-15-2005, 08:25 AM
I should give it a try, but if you want your table to have a set width, to prevent the columns from resizing you'll have to give them a set width, too, but this will only respected if the content fits the cells.

Otherwise, if you want the table to shrink-fit the contents, remove every width assignment, including that of the table itself.