View Single Post
Old 03-06-2004, 03:59 PM  
Coyote
Drinker of Scotch
 
Industry Role:
Join Date: May 2003
Location: Texas
Posts: 242
It depends on whether you want the table to resize or remain a fixed width.

Let's say you have six columns and x number of rows. You want the six columns to remain a consistent width regardless of image orientation, then do this,

6 cols to fit is 16% each and the table resulting width = 96%

The easiest way to do this is to set the width on a blank header row, then start your normal table rows with images in each of the 6 cells. Using a header allows your property settings to affect the entire column.

Having a fixed width table will require you to manually compute the width of each header cell for the width of the table based on the unit of measure you use, px, pt, in, etc. If your table width is ~ 500px, then your cell width will be 83px, resulting in a table width = 498px.

This is assuming you have no border, spacing, or padding set for the table. If you have any of these properties set, then the box model will change.

Hope that helps.
Coyote is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote