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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Lay-out problem with form

Status
Not open for further replies.

Stoemp

Programmer
Sep 25, 2002
389
BE
Hi

I have a menu on the left of a page where I have a small form where people can do a search. The code I use for this form (in a table) is:
Code:
<tr>
<td width="25" class="tdLichtGrijs">&nbsp;</td>
<td width="175" class="tdLichtGrijs"><div class="pBodyTekst"><form name="searchByID">&#8226;&nbsp;Search by ID<br /><input type="text" name="klantID" size="4" maxlength="5"><input type="submit" value="search" onClick="openSearchWindow();"></form></div></td>
</tr>

Apparently there's a line break after the form that messes up my lay-out. Can this be altered in a way that there's no line break anymore?

Thanks

Steven
 
Either change your form tag to read:

Code:
<form name="searchByID" style="padding:0px; 
margin:0px;">

or add this CSS to your page:

Code:
<style type="text/css">
form {
   padding: 0px;
   margin: 0px;
}
</style>

I think if you had searched this forum, you would have found many posts telling you the same thing.

Hope this helps,
Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top