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

<form> whitespace problem

P: n/a
Hi,

I'm having problems with the <form> tag creating some unwanted
whitespace. I did a search on this forum and came across this link:

http://www.cs.tut.fi/~jkorpela/forms/extraspace.html

Which gives a semi-work around to the problem (uses CSS). This however
does not work in Netscape 4 browsers.

Has anyone else come across another way to do this that works for
everything?

I was wondering if the <form> element was needed at all? On my page I am
just using a <select> drop-down box to change the contents of a frame on
the page (with javascript, the form never actually 'posts' anything).
Would it be legal to omit the <form> statement in this instance?

Many thanks.
Jul 20 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
In article bc9am wrote:
Hi,

I'm having problems with the <form> tag creating some unwanted
whitespace. I did a search on this forum and came across this link:

http://www.cs.tut.fi/~jkorpela/forms/extraspace.html

Which gives a semi-work around to the problem (uses CSS). This however
does not work in Netscape 4 browsers.
Why do you care that?
Has anyone else come across another way to do this that works for
everything?
I don't remember.
I was wondering if the <form> element was needed at all? On my page I am
just using a <select> drop-down box to change the contents of a frame on
the page (with javascript, the form never actually 'posts' anything).
Some browsers, like Opera 5 and 6 don't like that at all. I would think
they are more popular than NN4
Would it be legal to omit the <form> statement in this instance?


No. http://www.cs.tut.fi/~jkorpela/forms/navmenu.html#alt

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
I'm looking for work | Etsin työtä
Jul 20 '05 #2

P: n/a
bc9am wrote:
http://www.cs.tut.fi/~jkorpela/forms/extraspace.html
Which gives a semi-work around to the problem (uses CSS). This however
does not work in Netscape 4 browsers.
Does a small visual variance really matter? Netscape 4.x has a tiny market
share, and the content (which is the most important part of most websites)
is still available.
I was wondering if the <form> element was needed at all? On my page I am
just using a <select> drop-down box to change the contents of a frame on
the page (with javascript, the form never actually 'posts' anything).


Oh dear, on two counts.

http://www.cs.tut.fi/~jkorpela/forms/navmenu.html
http://dorward.me.uk/www/frames/
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Jul 20 '05 #3

P: n/a

"bc9am" <bc***@hotmail.com> wrote in message
news:xLRlc.514$fi6.201@newsfe1-win...
Hi,

I'm having problems with the <form> tag creating some unwanted
whitespace. I did a search on this forum and came across this link:

http://www.cs.tut.fi/~jkorpela/forms/extraspace.html

Which gives a semi-work around to the problem (uses CSS). This however
does not work in Netscape 4 browsers.
Just to give you another way of looking at the problem, there has come or
will come a time where each developer will decide whether it *matters* any
more about the details of a page's appearance in Netscape 4, as long as it
functions.

Has anyone else come across another way to do this that works for
everything?

I was wondering if the <form> element was needed at all? On my page I am
just using a <select> drop-down box to change the contents of a frame on
the page (with javascript, the form never actually 'posts' anything).
Would it be legal to omit the <form> statement in this instance?


Legal, and appropriate, since the purpose of a form element is to post its
data to the server.

Jul 20 '05 #4

P: n/a

"Harlan Messinger" <h.*********@comcast.net> wrote in message
news:c7************@ID-114100.news.uni-berlin.de...

"bc9am" <bc***@hotmail.com> wrote in message
news:xLRlc.514$fi6.201@newsfe1-win...
I was wondering if the <form> element was needed at all? On my page I am
just using a <select> drop-down box to change the contents of a frame on
the page (with javascript, the form never actually 'posts' anything).
Would it be legal to omit the <form> statement in this instance?


Legal, and appropriate, since the purpose of a form element is to post its
data to the server.


Let me clarify this. When using a control, whether a SELECT or another kind,
for purely client-side interaction, it's appropriate to use it without a
FORM. However, using a SELECT list for navigation is itself not a good idea.

Jul 20 '05 #5

P: n/a
Lauri Raittila wrote:
In article bc9am wrote:
Which gives a semi-work around to the problem (uses CSS). This however
does not work in Netscape 4 browsers.
Why do you care that?


I know that quite a few people who view the site use Netscape 4 browsers
(15-20%)
Some browsers, like Opera 5 and 6 don't like that at all. I would think
they are more popular than NN4


Thanks.
Jul 20 '05 #6

P: n/a
bc9am schrieb:
Hi,

I'm having problems with the <form> tag creating some unwanted
whitespace. I did a search on this forum and came across this link:

http://www.cs.tut.fi/~jkorpela/forms/extraspace.html

Which gives a semi-work around to the problem (uses CSS). This however
does not work in Netscape 4 browsers.

Has anyone else come across another way to do this that works for
everything?

I was wondering if the <form> element was needed at all? On my page I am
just using a <select> drop-down box to change the contents of a frame on
the page (with javascript, the form never actually 'posts' anything).
Would it be legal to omit the <form> statement in this instance?


I had a similar problem, perhaps "margin:0" helps

Werner
--
-----------------------------------------------------------
Werner Partner * Tel +49 2366 886606 * Fax: 886608
mailto:ka****@sonoptikon.de * http://www.sonoptikon.de
hören Sie Klassik: http://www.drmk.ch/
Jul 20 '05 #7

P: n/a
Werner Partner <ka****@sonoptikon.de> wrote:
bc9am schrieb:
I'm having problems with the <form> tag creating some unwanted
whitespace. I did a search on this forum and came across this link:

http://www.cs.tut.fi/~jkorpela/forms/extraspace.html

Which gives a semi-work around to the problem (uses CSS). This however
does not work in Netscape 4 browsers.


I had a similar problem, perhaps "margin:0" helps


That's the CSS solution which doesn't work in NN4. :-(

Letting NN4 display a bit of extra white space is by far the easiest
solution.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.