Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / JavaScript / December 2005



Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rob c - 01 Jan 2002 05:00 GMT
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
Randy Webb - 30 Dec 2005 17:45 GMT
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.

Signature

Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/

Martin Honnen - 30 Dec 2005 17:52 GMT
> 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.

Signature

    Martin Honnen
    http://JavaScript.FAQTs.com/

rob c - 01 Jan 2002 05:00 GMT
:>rob c wrote:
:>
[quoted text clipped - 18 lines]
:>If you have further questions on that try a tutorial on CSS and then a
:>CSS newsgroup.

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

Thank you!
Rob
McKirahan - 30 Dec 2005 18:10 GMT
> This is a minor thing and only appears in IE (so far), but I'd like to know to
> correct it (if possible).
[quoted text clipped - 6 lines]
> Rob
> www.rcp.ca

Try:  <form style="margin:0px">
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.