PDA

View Full Version : column width changing independently


craigh@mac.com
09-11-2002, 09:22 PM
sorry for the poor title. I can't figure out how to explain this is six words or less. :-)

http://dev.msboa.org/dist5/

If you go to the link above, you will see that I am using a two column layout with a template system. The left column is indicated to be width:150px. In the index page and some others, the width looks correct. But on other pages (click on the job listing link as an example), the left column changes its width on its own. I hate this! :-)

I am trying to find out how to FORCE the left column to stay the same width no matter what I throw in the right column.

BTW, this is being testing on Mac IE 5.2. I know it is rendered correctly in Mozilla 1.0, so I'm guessing this is an IE-only problem.

I appreciate the time!

MCookie
09-12-2002, 07:12 AM
Try giving the second column a width of 100%.

<table width="100%">
<tr>
<td width="150"></td>
<td width="100%"></td>
</tr>
</table>

craigh@mac.com
09-12-2002, 11:45 PM
that didn't work. As a kludge, I have put in a long string of text that has the visibility set to hidden. Since it forces the table to be as wide as possible, it seems to work. Kind of in-elegant though.

webmarkart
09-13-2002, 05:17 AM
I don't know if this works with tables, but it does with frames...

<table width="100%">
<tr>
<td width="150"></td>
<td width="*"></td>
</tr>
</table>

MCookie
09-13-2002, 02:22 PM
About flexible tables:
http://www.sam-i-am.com/misc/TestSuite/tables/flexible_width.html