By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,955 Members | 1,756 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,955 IT Pros & Developers. It's quick & easy.

<form>...</form> - how to supress blank space after </form> in IE?

P: n/a

This is a minor thing and only appears in IE (so far), but I'd like to know to
correct it (if possible).

Whenever I use a form on a webpage, Explorer always leaves a blank line
following the </form> tag but Mozilla doesn't. Is there a way to supress the
blank line?

Thanks
Rob
www.rcp.ca

Dec 30 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
rob c said the following on 12/30/2005 12:13 PM:
This is a minor thing and only appears in IE (so far), but I'd like to know to
correct it (if possible).

Whenever I use a form on a webpage, Explorer always leaves a blank line
following the </form> tag but Mozilla doesn't. Is there a way to supress the
blank line?


Remove the extra whitespace from your source code.

Irrelevant to JS though.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Dec 30 '05 #2

P: n/a


rob c wrote:
Whenever I use a form on a webpage, Explorer always leaves a blank line
following the </form> tag but Mozilla doesn't. Is there a way to supress the
blank line?


form is a block element like div or p so what you see is probably the
normal layout for the block element.
CSS allows you to change that, see the display property for instance
<http://www.w3.org/TR/CSS21/visuren.html#display-prop>
With inline CSS you can do e.g.
<form style="display: inline;">
or you better use a stylesheet with e.g.
#someForm { display: inline; }
and then an id attribute
<form id="someForm">
on that form element.
Depending on what you want to change it might also be helpful or
necessary to change the margin e.g.
<form style="margin-bottom: 0;">
If you have further questions on that try a tutorial on CSS and then a
CSS newsgroup.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Dec 30 '05 #3

P: n/a
"rob c" <gr***********@rcp.ca> wrote in message
news:N6******************************@tbaytel.net. ..

This is a minor thing and only appears in IE (so far), but I'd like to know to correct it (if possible).

Whenever I use a form on a webpage, Explorer always leaves a blank line
following the </form> tag but Mozilla doesn't. Is there a way to supress the blank line?

Thanks
Rob
www.rcp.ca


Try: <form style="margin:0px">
Dec 30 '05 #4

P: n/a
In message <43***********************@newsread4.arcor-online.net> - Martin
Honnen <ma*******@yahoo.de> writes:
:>
:>rob c wrote:
:>
:>> Whenever I use a form on a webpage, Explorer always leaves a blank line
:>> following the </form> tag but Mozilla doesn't. Is there a way to supress the
:>> blank line?
:>
:>form is a block element like div or p so what you see is probably the
:>normal layout for the block element.
:>CSS allows you to change that, see the display property for instance
:> <http://www.w3.org/TR/CSS21/visuren.html#display-prop>
:>With inline CSS you can do e.g.
:> <form style="display: inline;">
:>or you better use a stylesheet with e.g.
:> #someForm { display: inline; }
:>and then an id attribute
:> <form id="someForm">
:>on that form element.
:>Depending on what you want to change it might also be helpful or
:>necessary to change the margin e.g.
:> <form style="margin-bottom: 0;">
:>If you have further questions on that try a tutorial on CSS and then a
:>CSS newsgroup.
:>
:>--
:>
:> Martin Honnen
:> http://JavaScript.FAQTs.com/

As soon as you said "...form is a block element like div or p..." a small
light bulb started to flicker.

Thank you!
Rob
Dec 30 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.