• 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?
0
siteup
Asked:
siteup
  • 2
1 Solution
 
ALaRivaCommented:
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
0
 
siteupAuthor Commented:
<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>
0
 
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.
0
 
Diablo84Commented:
try adding style="display:inline;" in your form tag, eg:

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

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