• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 410
  • Last Modified:

</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?
  • 2
1 Solution
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.

siteupAuthor Commented:

<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>
<table border="1" width="100%">
            <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>


siteupAuthor Commented:
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.
try adding style="display:inline;" in your form tag, eg:

  <form method="POST" action="foo2.php" style="display:inline;">

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now