Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

That annoying gap after a form

Status
Not open for further replies.

winston1984

IS-IT--Management
Jun 4, 2004
17
0
0
GB
I have the following code creating a form for user login. there is a gap below the buttons that causes the table to be larger than I want. how can I remove it?

<td class="redborder"><form action="login.php" method="get" name="loginform"><p class="menutext">Username<br>
<input name="usrName" type="text" class="textboxtext" id="usrName"><br>
Password<br>
<input name="pssWord" type="password" class="textboxtext" id="pssWord">
<br>
<input name="Submit" type="submit" class="textboxtext" value="Submit">
<input name="Reset" type="reset" class="textboxtext" value="Reset">
</form></p></td>

Thanks.
 
And be aware that white space (that's carriage returns and tabs and spaces to the rest of us), used in making the HTML source code look pretty, can also cause these kinds of gaps. As can an erroneously defined DOCTYPE.

If the suggestion of using margin-bottom:0px doesn't do the trick 100%, then you might consider removing all white space from between the <td> </td> tags.

All the best,
Jeff
 
Also try putting your form tags outside your <tr> </tr> tags
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top