siteup
asked on
</form> tag causes white space in my layout
I'm trying to get a form to be totally contained in a table cell. The only problem is, whenever I add the close form tag (</form>), IE automatially inserts a set amount of white space below the form. Even if I set the height of the cell explicitly, it is still overridden by this close form tag. Any ideas?
ASKER
<html>
<body>
<form method="POST" action="foo.php">
<p><input type="text" name="T1" size="20"><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
</form>
<p> </p>
<p> </p>
<table border="1" width="100%">
<tr>
<td> </td>
<td width="619">
<form method="POST" action="foo2.php">
<p><input type="text" name="T2" size="20"><input type="submit" value="Submit" name="B3"><input type="reset" value="Reset" name="B4"></p>
</form>
</td>
</tr>
</table>
</body>
</html>
<body>
<form method="POST" action="foo.php">
<p><input type="text" name="T1" size="20"><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
</form>
<p> </p>
<p> </p>
<table border="1" width="100%">
<tr>
<td> </td>
<td width="619">
<form method="POST" action="foo2.php">
<p><input type="text" name="T2" size="20"><input type="submit" value="Submit" name="B3"><input type="reset" value="Reset" name="B4"></p>
</form>
</td>
</tr>
</table>
</body>
</html>
ASKER
the first form has no white space below it. if you look at the form in the table, it does. but if you take out the </form> tag from the one in the table, the white space goes away. . .but then of course the form doesn't work properly.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
-Anthony