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

<form></form> question 1

Status
Not open for further replies.

zzfive03

Programmer
Jun 11, 2001
267
When you declare a form in HTML (<form>) it puts a space. I am on a portion of my page where space is critical to be kept at a minimum level. Is there a way to make my <form> and </form> not take that extra <br> line?

The only way I thought to do this is to put it in its own <td> and declare it such as:
<td STYLE='height:1px;><form></td>

Is this a correct solution? Is there a better way?

Thank you.
Mark
 
zzfive03,
I'm afraid that you cannot do it even with solution you've come up. Because in this case you need to insert <table>, which by itself adds a space. Maybe you better off to play with other elements on your page: font size, for example, or unnecessary breaks somewhere else, etc.
By the way, if you'll find any solution, post it to the Forum. It'd be interesting.
Good luck.
 
Actually, I have used this solution, and it seems to work fine:

<Table ID=&quot;tblMain&quot; cellpadding=0 cellspacing=0>
<form Method=Post Action=&quot;Whatever&quot; ID=&quot;frmAddSomething&quot;>
<tr>
<td>Something</td>
</tr>
</form>
</table>

This seemed to work good for me, as I was having the same problem. I didn't need the space between the table and the graphical seperator bar that was placed just above the table.

Hope this helps, Tazzmann
 
Excelent, worked for me!!

Thanks Tazzmann
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top