473,395 Members | 1,694 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

<form> whitespace problem

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
7 5904
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
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

"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

"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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Keiron Waites | last post by:
I have the following code: <input type="text" name="search" class="search_top"> <a href="" onclick="window.location='search.inc.php'+document..search. value; return false;"...
1
by: steve | last post by:
Hello, I'm reworking our company site, trying to do it without tables. It's been a bit of an... adventure. Site is starting to come along. Problem I've run into is aligning image input...
3
by: Ben | last post by:
Here's my form: <form name="aForm" method='post'> <input type=file name=file1 onkeypress='KeyPress()'><br> <a id='attachMoreLink' href='javascript:AddFileInput()">Attach More Files </a> <input...
4
by: Howard Jess | last post by:
In Opera 8.01 (Linux; Build 1204) and in Opera 7.54 (Windows XP; Build 3865), my form disappears from the HTML markup (below). To summarize: 1) In a <script> block in the <head> I create a form...
10
by: Phlip | last post by:
HTMListas: (Apologies for I can't Google for this - too many common words.) I have a <form> tag. It thinks I want a <p> break before and after the form. I don't. (My forms are sneaky and...
6
by: snacktime | last post by:
I've searched and searched and have not found a solution to suppress the margin on form or href tags so that there is no space before or after the tag. The only way I have found to do this is to...
4
by: rob c | last post by:
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...
10
by: neverquit | last post by:
hi , Iam Nagesh,Begineer in using Ajax,well i have been using ajax in application, i have faced a problem while placing the responseTEXT into the <div> tag positioned inside the <form> tag iam...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.