Forum Moderators: open

Message Too Old, No Replies

Extra whitespace after a FORM tag?

         

Manga27

6:00 pm on Feb 1, 2004 (gmt 0)

10+ Year Member



I have never been able to figure this one out. FORM tags leave extra whitespace after you close the FORM tag. Is there any way to disable this, using CSS or regular HTML commands?

Thanks in advance,

... Christopher @ Snowburst

txbakers

6:01 pm on Feb 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<form style="margin-top:0;margin-bottom:0">

Manga27

6:02 pm on Feb 1, 2004 (gmt 0)

10+ Year Member



Thanks!

Sanenet

6:02 pm on Feb 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It depends where the /form tag is placed. If it's between a table tag, it will produce whitespace. I find that <TR><FORM><TD></TD></FORM></TR> will leave a space, <FORM><TR><TD></TD></TR></FORM> doesn't.

I've only noticed this in IE, anybody seen it in other browsers? (Never tested it)

Manga27

6:08 pm on Feb 1, 2004 (gmt 0)

10+ Year Member



The style/margin tag that was first suggested worked perfectly in IE, however it is on a freestanding FORM not surrounded by a table.

Edouard_H

6:10 pm on Feb 1, 2004 (gmt 0)

10+ Year Member



display: inline will also work, but it's best used in an external stylesheet. Declared inline it causes form elements to disappear in NN 4.x (which otherwise ignores it).