Resizing controll in table w/ ROWSPAN

liunx

Guest
Ok, Im going to post some code first then explain my problem :) <br />
<HTML><br />
<BODY><br />
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="95%" ALIGN="CENTER" BORDER="1"><br />
<TR><br />
<TD WIDTH="50" HEIGHT="50">a</TD><br />
<TD WIDTH="50" HEIGHT="50">2</TD><br />
<TD WIDTH="50" HEIGHT="50">3</TD><br />
<TD WIDTH="50" HEIGHT="50">4</TD><br />
<TD HEIGHT="50">5</TD><br />
<TD WIDTH="50" HEIGHT="50">6</TD><br />
</TR><br />
<TR><br />
<TD WIDTH="50" HEIGHT="50">b</TD><br />
<TD WIDTH="50" HEIGHT="50">2</TD><br />
<TD HEIGHT="50" COLSPAN="3" ROWSPAN="2">3<P>.<P>.<P></TD><br />
<br />
<TD WIDTH="50" HEIGHT="50">6</TD><br />
</TR><br />
<TR><br />
<TD WIDTH="50">c</TD><br />
<TD WIDTH="50">2</TD><br />
<br />
<TD WIDTH="50">6</TD><br />
</TR><br />
<TR><br />
<TD WIDTH="50" HEIGHT="50">d</TD><br />
<TD WIDTH="50" HEIGHT="50">2</TD><br />
<TD WIDTH="50" HEIGHT="50">3</TD><br />
<TD WIDTH="50" HEIGHT="50">4</TD><br />
<TD HEIGHT="50">5</TD><br />
<TD WIDTH="50" HEIGHT="50">6</TD><br />
</TR><br />
<br />
</TABLE><br />
</BODY><br />
</HTML><br />
<br />
Ok, if your looking at the page then each box should be 50 x 50 except for colum #5, or any cell spaning over #5. This works fine, if I resize explorer then #5 grows or shrinks as expected. The problem is the row spacing. Cell b3 spans across c3,4,5. Notice in the code how row c has no height? I want it so the as cell b3 gets bigger, the height of c adjusts. As it stands now, row b is bigger than 50, even though thats the height I gave it. Is there any way to make row c grow instead of b?<!--content-->ok I think you are confusing things here. if you make you browser window smaller in height the scroll bar comes out and the table doesn't adjust. but if you make it smaller in width it grows like expected. take the height out of the b row and it will be the same as c.<!--content-->
 
Back
Top