Welcome to WebmasterWorld Guest from 54.198.208.159

Forum Moderators: incrediBILL

Message Too Old, No Replies

Fluid table

     
2:37 pm on Feb 22, 2009 (gmt 0)

Junior Member

5+ Year Member

joined:Sept 15, 2008
posts: 90
votes: 0


Hi folks,

If I place a table on a page with 7 cells in a row, I set the fist cell to a width in pixels for a 'spacer', if I specify the remaining 6 cells as % width do they take a % of the remaining space (minus the pixel spacer) or do they take a % of the total table width?

7:57 pm on Feb 22, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Dec 17, 2001
posts:1262
votes: 0


The percentage is based on the width of the whole table, so the results are unpredictable when widths are specified using different measurements.

I would use CSS to set padding on the first column rather. Creating an empty columns for display purposes is unsemantic, anyway.