<FORM> changing table spacing?

Hi all,<br />
<br />
this may well be a total n00b question so apologies if its a simple one :rolleyes: <br />
<br />
I'm having a bit of trouble with the spacing of a HTML table being changed whenever a wrap a image in a Form.<br />
<br />
Basically the spacing of the table is perfect with a couple of images embedded in the table cells which will be used as buttons. The problem occurs when I put the <Form> tag around the image as the table row gets taller even though there is no height or other formatting applied to the cell. I want the cell to be the same height as the image but it seems the form tag changes the height and no amount of messing around with cell properties seems to get rid of the extra space added below the button.<br />
<br />
so am I missing something? is there some extra parameters required to stop the forms messing about with the table spacing? Strangely the page looks fine in MS Frontpage *spit* but in IE its all over the place :(<br />
<br />
<br />
Thanks in advance<br />
<br />
Chris<!--content-->How about seeing some code.<!--content-->Sorry for the delay in getting back to you, but here is a small example of what I mean. its not the actual bit of code what i'm working on but it demonstrates the problem nicely.<br />
<br />
the first table has the form tags wrapped around the image and you'll notice that there is a gap underneath it.<br />
<br />
the second table is the same, but has the Form tags remove and there is no gap under the image?<br />
<br />
any idea whay this is the case?<br />
<br />
Cheers<br />
<br />
Chris<br />
<br />
<br />
P.s<br />
<br />
Sorry about the pasting the HTML direct in the thread but I don't have access to some webspace I can host it on at the moment :(<br />
<br />
so just cut and paste it in notepad etc<br />
<br />
<br />
<br />
<table BORDER="0"><br />
<b> WITH FORM </b><br />
<tr><br />
<td><br />
<br />
<table border="1" bgcolor="#BEBFCE"><br />
<tr> <br />
<td><br />
<b><font face="Arial" size="4" color="#0000FF">Performance</font></b><br />
</td><br />
<br />
<td><br />
<b><font face="Arial" size="4" color="#0000FF">Quantity</font></b><br />
</td><br />
<br />
<td><br />
<b><font face="Arial" size="4" color="#0000FF">Total</font></b><br />
</td><br />
<br />
<td><br />
<b><font face="Arial" size="4" color="#0000FF">Remove</font></b><br />
</td><br />
</tr><br />
<br />
<tr> <br />
<br />
<td bgcolor="#BEBFCE" ><br />
<font color="#333399" face="arial" size="4"><br />
Nemesis <br />
</font><br />
</td><br />
<br />
<td bgcolor="#BEBFCE" > <br />
<font color="#333399" face="arial" size="4"><br />
2<br />
</font> <br />
</td><br />
<br />
<td bgcolor="#BEBFCE" > <br />
<font color="#333399" face="arial" size="4"><br />
?20.00 <br />
</font> <br />
</td><br />
<br />
<td bgcolor="#BEBFCE" > <br />
<form action="\DeleteBasketItem?Performance=02CAD9&Perf_Year=2004" METHOD="Post" name="FORM_02CAD9"><br />
<img src=http://www.webdeveloper.com/forum/archive/index.php/"images/btn_remove.jpg" img name = "ITEM_02CAD9" width="123" height="54" <br />
<br />
onmousedown="JavaScript:document.FORM_02CAD9.submit()"><br />
</form> <br />
</td><br />
</tr><br />
<br />
<br />
<br />
<tr><br />
<td bgcolor="#BEBFCE" colspan="2"><br />
&nbsp;<br />
</td><br />
<br />
<td bgcolor="#BEBFCE" colspan="1"> <br />
<font face="Arial" size="4">TOTAL: <font color="#FF0000">?20.00</font></font> <br />
</td><br />
</tr> <br />
</table><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<br />
<table BORDER="0"><br />
<b> WITHOUT FORM </b><br />
<tr><br />
<td><br />
<br />
<table border="1" bgcolor="#BEBFCE"><br />
<tr> <br />
<td><br />
<b><font face="Arial" size="4" color="#0000FF">Performance</font></b><br />
</td><br />
<br />
<td><br />
<b><font face="Arial" size="4" color="#0000FF">Quantity</font></b><br />
</td><br />
<br />
<td><br />
<b><font face="Arial" size="4" color="#0000FF">Total</font></b><br />
</td><br />
<br />
<td><br />
<b><font face="Arial" size="4" color="#0000FF">Remove</font></b><br />
</td><br />
</tr><br />
<br />
<tr> <br />
<br />
<td bgcolor="#BEBFCE" ><br />
<font color="#333399" face="arial" size="4"><br />
Nemesis <br />
</font><br />
</td><br />
<br />
<td bgcolor="#BEBFCE" > <br />
<font color="#333399" face="arial" size="4"><br />
2<br />
</font> <br />
</td><br />
<br />
<td bgcolor="#BEBFCE" > <br />
<font color="#333399" face="arial" size="4"><br />
?20.00 <br />
</font> <br />
</td><br />
<br />
<td bgcolor="#BEBFCE"> <br />
<br />
<img src=http://www.webdeveloper.com/forum/archive/index.php/"images/btn_remove.jpg" img name = "ITEM_02CAD9" width="123" height="54" <br />
<br />
onmousedown="JavaScript:document.FORM_02CAD9.submit()"><br />
<br />
</td><br />
</tr><br />
<br />
<br />
<br />
<tr><br />
<td bgcolor="#BEBFCE" colspan="2"><br />
&nbsp;<br />
</td><br />
<br />
<td bgcolor="#BEBFCE" colspan="1"> <br />
<font face="Arial" size="4">TOTAL: <font color="#FF0000">?20.00</font></font> <br />
</td><br />
</tr> <br />
</table><br />
</td><br />
</tr><br />
</table><!--content-->Add the attribute in blue to your form<br />
<form style="margin:0;" action=<!--content-->Thanks, I knew it would be something simple :) <br />
<br />
As you can tell I'm no pro web developer :p <br />
<br />
Cheers<br />
<br />
Chris<!--content-->
 
Back
Top