Just wondering if anyone knows how to get rid of the annoying blank space that <form></form> tags create?
Nov 6, 2001, 10:42 AM
User (155 posts)
Nov 6, 2001, 10:42 AM
Post #3 of 12
Views: 8489
The Perl forum is more a webmaster issue forum, with an emphasis on Perl... so I'd say this qualifies.
As to the <form> tag issue... are you talking about the vertical space? If the form is inside a table, I will sometimes place the <form> tags between <tr> and <td> tags. Something like:
<tr><form><td>stuff</td></form></tr>
That seems to get rid of extra spacing.
--
Matt G

As to the <form> tag issue... are you talking about the vertical space? If the form is inside a table, I will sometimes place the <form> tags between <tr> and <td> tags. Something like:
<tr><form><td>stuff</td></form></tr>
That seems to get rid of extra spacing.
--
Matt G
Nov 6, 2001, 10:51 AM
Enthusiast (619 posts)
Nov 6, 2001, 10:51 AM
Post #4 of 12
Views: 8344
Indeed, the solution mglaspie suggested is used by many, including me. Although this isn't exactly legit HTML and validator's will flag it as bad code, its works across all browsers and works well.
~ ERASER
Free JavaScripts @ Insight Eye
~ ERASER
Free JavaScripts @ Insight Eye
Nov 6, 2001, 11:12 AM
Veteran (1141 posts)
Nov 6, 2001, 11:12 AM
Post #5 of 12
Views: 8290
I've often wondered about that... thanks for sharing the info.
It wasn't until I started working with IE that I noticed that carriage returns (hard returns) will affect your table tags and break tags as well.
<BR>something<BR>something
will often display differently (extra line space) than
<BR>something
<BR>something
ditto for <TD> tags
It wasn't until I started working with IE that I noticed that carriage returns (hard returns) will affect your table tags and break tags as well.
<BR>something<BR>something
will often display differently (extra line space) than
<BR>something
<BR>something
ditto for <TD> tags
Nov 6, 2001, 2:04 PM
Staff (4101 posts)
Nov 6, 2001, 2:04 PM
Post #7 of 12
Views: 8423
Only thing with that solution is that Netscape 4.x will do REALLY weird things if you happen to have multiple tables, and you go putting the start and end form tags in between the tr's of the tables
like if you did:
<form>
<tr><td>
</td></tr>
</table>
<table>
<tr><td>
</td></tr>
</form>
</table>That css solution for IE is interesting. I'll have to try that (I wonder if it works for mozilla as well...)
PS: I hate html
Adrian

Code:
<table> <form>
<tr><td>
</td></tr>
</table>
<table>
<tr><td>
</td></tr>
</form>
</table>
PS: I hate html

Adrian
Nov 6, 2001, 7:37 PM
User (155 posts)
Nov 6, 2001, 7:37 PM
Post #8 of 12
Views: 8346
Quote:
Only thing with that solution is that Netscape 4.x will do REALLY weird things if you happen to have multiple tables, and you go putting the start and end form tags in between the tr's of the tables like if you did:Yeah, I definitely would not recommend opening a form tag in one table and closing in another... you're just askin' for trouble.

I'd be interested if that css solution works in Netscape. Let me know if it works out for you.
--
Matt G
Nov 7, 2001, 4:20 AM
Veteran / Moderator (18436 posts)
Nov 7, 2001, 4:20 AM
Post #9 of 12
Views: 8330
I have been told that using nested form tags (i.e. outside of the <table> and </table> tags) it work. didnt get to try it, but I know it does work as my mate used it on his site.
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Nov 7, 2001, 4:21 AM
Veteran / Moderator (18436 posts)
Nov 7, 2001, 4:21 AM
Post #10 of 12
Views: 8275
Heh heh..I really do need to learn a bit more CSS
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!