...

View Full Version : want to have a fixed cell width



gameover
03-02-2005, 03:21 AM
Here's the scenario:

I've got 3 table cells in my table each of width 500

The equivalent of:

<table><tr>
<td width="500"> Cell 1
</td>
<td width="500"> Cell 2
</td>
<td width="500">cell 3
</td>
</tr></table> But when I extend cell2's (or any of the cells) width to 5000, the width of the 3 cells are adjusted to fit in the browser.
What I want is a horizontal scrollbar to appear when the cell width is too long.
Is that possible?

fmeetze
03-02-2005, 03:35 AM
Cells do that. They conform to the least resistance. That is why I find that it is best to define another table within that cell. This way you can define the table's width.



<table><tr>
<td width="500"> Cell 1
</td>
<td width="500">
<table width="5000">
<tr>
<td> Cell 2
</td>
</tr>
</table>
</td>
<td width="500">cell 3
</td>
</tr></table>

gameover
03-02-2005, 03:41 AM
wow... great!
thanks for the swift reply



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum