Forum Moderators: open

Message Too Old, No Replies

Auto resize table column

         

a_angova

9:48 pm on Aug 29, 2005 (gmt 0)

10+ Year Member



Hello all,

I have a table with two colums.
The left column is shorter than the right one. I want the left one to has length that match exactly the length of the right one.
Can you please advice me how to fix this problem?
Now the left column height is fixed.

Best Regards, Ani

encyclo

1:41 am on Aug 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you defining the columns with
<colgroup></colgroup>
or just as separate table cells?

Could you post a short snippet or test page shwing the problem you are experiencing?

a_angova

6:27 am on Aug 30, 2005 (gmt 0)

10+ Year Member



I have :
<table>
<tr>
<td>left column</td>
<td>right column</td>
</tr>

The height of the right column is bigger because it has a lot of text in it. I want to use a property that tells the left column to match the size of the right one.
Please help me.

Best Regards, Ani

zeoncitizen

1:03 pm on Aug 30, 2005 (gmt 0)

10+ Year Member



set exact width for whole table and for each cell of table:

<table width="500">
<tr>
<td width="250">left column</td>
<td width="250">right column</td>
</tr>