Forum Moderators: open

Message Too Old, No Replies

cell width in a table

         

manjumurthy

12:44 pm on May 17, 2002 (gmt 0)



I have a problem while displaying the data in the html table. The cell width gets automatically adjusted depending on the text displayed in the cell. I want to keep this width fixed so that the table looks uniform.I have requirement where each row is a separate table.
Ex:<table border=0 width=600 cellspacing = 0 cellpadding= 0>
<tr>......</tr></table>
<table border=0 width=600 cellspacing = 0 cellpadding= 0>
etc...
<tr>........</tr></table>

brotherhood of LAN

1:12 pm on May 17, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Use %'s for tables as opposed to fixed width then your tables will be a certain size........a fluid size that will work across all browsers (hopefully).

Are you using Frontpage to make these? A thing to note with FP is even though you tell the WYSIWYG editor to measure your tables in % or whatever, you sometimes also need to do it cell by cell within the table.

Try % and see what you think

nwilson

1:23 pm on May 17, 2002 (gmt 0)



and if you don't have any luck with that you can always go the tranparent gif route:

Just create another row and stick a 1x600 gif inside it and it will give the table a minimum width.

Nick

Axacta

2:45 pm on May 17, 2002 (gmt 0)

10+ Year Member



Because you mentioned cell width I assume you have multiple cells per row. You must designate the width of each cell or they will move around depending on the amount of content in each cell.

For an evenly distributed three column row it would be:

<table border=0 width=600 cellspacing=0 cell padding=0>
<tr>
<td width=200>.....</td>
<td width=200>.....</td>
<td width=200>.....</td>
</tr>
</table>