Click to See Complete Forum and Search --> : Space after form


NZ_Kiwis
08-15-2008, 05:10 AM
This is a example of a problem i have, once I have this code it ALWAYS has a line after the form like a <p> is there... why?




<table border="1" width="100%" id="table1">
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td align=\"center\"></td>
<td align=\"center\"><form method=\"POST\" enctype=\"functions/promo.php\">
<input type=\"text\" name=\"T1\" size=\"10\" style=\"font-family: Verdana; font-size: 8pt\"><input type=\"submit\" value=\"recalculate\" name=\"B1\" style=\"font-family: Verdana; font-size: 8pt\">
</form>
</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
</table>

Terminator
08-15-2008, 05:41 AM
This is due to Internet Explorer, use CSS to solve this issue.

edit

in your CSS file

.Forms {
margin-top: 0px;
margin-bottom: 0px;
}

and your code

<form method=\"POST\" enctype=\"functions/promo.php\" class=\"Forms \">

or if I am correct this should also work if you don't use CSS

<form method=\"POST\" enctype=\"functions/promo.php\" style=\"margin-top: 0px; margin-bottom: 0px;\">

bradgrafelman
08-15-2008, 02:12 PM
Since FORM is by default a block element, you could simply make it an inline element (e.g. add style="display:inline" to the FORM tag).