colspan problems

Hello, I have a question that someone here might be able to help me out
with.

If you have a cell in a row that spans a number of columns, is it possible
to code the cells in such a way that when the spanned cell enlarges or
contracts only one column adjusts it's width to make up for the space
difference?

The way I have it at this moment is below:


	<table border="0" cellspacing="0" cellpadding="0">
  		<tr>
    			<td width="26" height="39"><img src="spacer.gif" width="26"
height="39"></td>
    			<td width="177" height="39"><img src="spacer.gif" width="177"
height="39"></td>
			<!--THIS IS THE COLUMN I'D LIKE TO ADJUST WHEN THE TABLE NEEDS MORE OR
LESS SPACE--><td height="39"><img src="spacer.gif" width="20"
height="39"></td>
    			<td colspan="2"><img src="spacer.gif" width="52" width="52"
height="39"></td>
  		</tr>
  		<tr>
    			<td>&nbsp;</td>
			<!--THIS IS THE CELL THAT NEEDS TO EXPAND AND CONTRACT--><td
colspan="3"><img src="spacer.gif" width="450" height="1"></td>
    			<td width="26"><img src="spacer.gif" width="26" height="35"></td>
  		</tr>
  		<tr>
    			<td>&nbsp;</td>
    			<td width="177">&nbsp;</td>
			<td>&nbsp;</td>
    			<td width="26">&nbsp;</td>
    			<td width="26">&nbsp;</td>
  		</tr>
	</table>


I have also tried setting the width on the cells I want adjustable to
relative widths with no luck.  It seems that when the spanned cell in the
middle get expanded, the extra space seems to get distributed among all the
columns the cell spans.  Is there any way around this problem?

Any help/advise would be greatly appreciated.

-mike

Received on Tuesday, 7 November 2000 15:45:17 UTC