Link to home
Start Free TrialLog in
Avatar of siteup
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?
Avatar of ALaRiva
ALaRiva
Flag of United States of America image

If possible, we'd need to see the page (a link).  Or at least, just the code for the page.  This isn't normal behavior, so something must be going on.

-Anthony
Avatar of siteup
siteup

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>&nbsp;</p>
<p>&nbsp;</p>
<table border="1" width="100%">
      <tr>
            <td>&nbsp;</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>
Avatar of siteup

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
Avatar of Diablo84
Diablo84

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial