mathmatics in html

liunx

Guest
I have a table with 3 columns. I want the columns on the right and left to be both 250 pixles which I can do. But I want the middle column to change if the user resizes or whatnot. So the width of the middle column should be something like 100% - 500. Can that be done?<!--content-->you can come real close by nesting tables in this fashion....<br />
<br />
<br />
<table border="0" cellpadding="0" cellspacing="0" width="100%"><br />
<tr><br />
<td width="1%"><br />
put your 250 pixel table here<br />
</td><br />
<td width="98%"><br />
put your exnapding table into here<br />
</td><br />
<td width="1%"><br />
put your 250 pixel table ehre<br />
</td><br />
</table><!--content-->thanks, ill try that<!--content-->actuly, you could take a transparent image and set it to 250px in each of the 25px columns, then set the midle to 100% and it would work.<!--content-->Forget images, the following code is the simplest way of doing what you need. This way you don't have to muck about nesting, transparent gifs, or any other convoluted method. Keep it simple. By making the table width 100% and defineing the left and right tables only (in pixels at <td> level) the center table will expand and shrink to the users set up.<br />
<br />
<br />
<table width="100%"><br />
<tr><br />
<td width="250">data here</td><br />
<td>data here</td><br />
<td width="250">data here</td><br />
</tr><br />
</table><!--content-->
 
Back
Top