?
Solved

NC: </form> have some space ..

Posted on 1999-11-19
30
Medium Priority
?
183 Views
Last Modified: 2010-04-09
netscape 4.7

when use <form></form>
it has some space ~2 line at the end of form
how to remove it ?

i tried both put form componet in table or out of table
it won't solve...what happen ?

<form ... >
<table ... >
...
...
</table>
</form>

or

<table ... >
<form ... >
...
...
</form>
</table>
0
Comment
Question by:tong111797
  • 15
  • 11
  • 4
30 Comments
 
LVL 4

Expert Comment

by:oubelkas
ID: 2219403
Well, you did try  border="0" cellspacing="0" cellpadding="0" and maybe in the <TD> tags you used colspan, look at this. For now, could you post the actual code you have, because it could be lots of things what causes this.

Joseph
0
 

Author Comment

by:tong111797
ID: 2219518
<form method=post action=viewstat.cgi>
<table border=0 cellpadding=0 cellspacing=0 bgcolor=#dddddd align=center>
      <tr>
            <td bgcolor=#ff6600><img src="image/dot.gif" height=25 width=5></td>
            <td bgcolor=#666666 align=center><font face="arial" size=2 color=#ffffff><b>Advertiser Login</b></td>
      </tr>
      <tr>
            <td colspan=2><table border=0 cellpadding=0 cellspacing=10 bgcolor=#dddddd>
                  <tr align=center>
                        <td><font face="MS Sans Serif" size=1><b>Banner ID</b> :</td>
                        <td><font face="MS Sans Serif" size=1><input size=15 type=text name='id' maxlength=15></td>
                  </tr>
                  <tr align=center>
                        <td><font face="MS Sans Serif" size=1><b>Password</b> :</td>
                        <td><font face="MS Sans Serif" size=1><input size=15 type=text name='password' maxlength=15></td>
                  </tr>
                  <tr align=center>
                        <td colspan=2><font face="MS Sans Serif" size=1><b><input type=submit value="        Submit        "></td>
                  </tr>
                  </table>
            </td>
      </tr>
</table>
</form>
0
 

Author Comment

by:tong111797
ID: 2219522
if u try to add something under the </form>
it will separate by ~2 lines of space...

i can't figure out..

0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 

Author Comment

by:tong111797
ID: 2219538
lookat this simple code is better...it has 2 lines of space



blahblah
<form method=post action=viewstat.cgi>
<table border=0 cellpadding=0 cellspacing=0 bgcolor=#dddddd>
      <tr>
            <td>Banner ID</td>
            <td><input size=15 type=text name=id></td>
      </tr>
      <tr>
            <td>Password</td>
            <td><input size=15 type=text name=pass></td>
      </tr>
      <tr>
            <td colspan=2><input type=submit value=Submit></td>
      </tr>
</table>
</form>blahblah
blah2<br>
blah3
blah4
0
 

Author Comment

by:tong111797
ID: 2219544
this is super simple..

blah
blah2<form action=sdf><input type=text><input type=submit value=Submit></form>blah3
blah4
0
 
LVL 4

Expert Comment

by:oubelkas
ID: 2219551
yes,yes, I got the point :)

I'm checking it out.

0
 
LVL 4

Expert Comment

by:oubelkas
ID: 2219559
Here!

<table border=1 cellpadding=0 cellspacing=0 bgcolor=#dddddd>
<form method=post action=viewstat.cgi>
<tr>
<td>Banner ID</td>
<td><input size=15 type=text name=id></td>
</tr>
<tr>
<td>Password</td>
<td><input size=15 type=password name=pass></td>
</tr>
<tr>
<td colspan=2>
<input type=submit value=Submit>
</td>
</tr>
</form>
</table>blahblah
blah2<br>
blah3
blah4

Just switch the table and form tags! :)

Joseph
0
 

Author Comment

by:tong111797
ID: 2219597
the head still have space...


blahasd
<table border=1 cellpadding=0 cellspacing=0>
<form action=>
<tr><td><input type=password name=pass>
<input type=submit value=Submit></td></tr>
</form>
</table>blahblah
blah2<br>
blah3

0
 
LVL 4

Expert Comment

by:oubelkas
ID: 2219628
Hahaha! Rejected hunh, use this then!

<BODY MARGINWIDTH="0" MARGINHEIGHT="0" LEFTMARGIN="0" RIGHTMARGIN="0" TOPMARGIN="0" BOTTOMMARGIN="0">
blajblkajbl
<table border=1 cellpadding=0 cellspacing=0 bgcolor=#dddddd>
<form method=post action=viewstat.cgi>
<tr>
<td>Banner ID</td>
<td><input size=15 type=text name=id></td>
</tr>
<tr>
<td>Password</td>
<td><input size=15 type=password name=pass></td>
</tr>
<tr>
<td colspan=2>
<input type=submit value=Submit>
</td>
</tr>
</form>
</table>blahblah
blah2<br>
blah3
blah4

Joseph

PS: hope this helps then :)
0
 
LVL 4

Expert Comment

by:oubelkas
ID: 2219793
Of course you can adjust these values, so that the offset (the space between the clientwindow and the text) will be changed. E.g. instead of using "0" use "5" or so.

Well, if this isn't what you want....

Joseph
0
 

Author Comment

by:tong111797
ID: 2221959
i found out that netscape can't display correctly
and most great webmaster use js + clickable image
instead of use form submit.
0
 
LVL 4

Expert Comment

by:garrethg
ID: 2222055
Put the form tags inside a row:

<HTML>
<BODY>

<table border=0 cellpadding=0 cellspacing=0 bgcolor=#dddddd>
<tr>
<form method=post action=viewstat.cgi>
<td>Banner ID</td>
<td><input size=15 type=text name=id></td>
</tr>
<tr>
<td>Password</td>
<td><input size=15 type=text name=pass></td>
</tr>
<tr>
<td colspan=2><input type=submit value=Submit></td>
</form>
</tr>
</table>
blahblah
blah2<br>
blah3
blah4

</BODY>
</HTML>
0
 
LVL 4

Expert Comment

by:oubelkas
ID: 2223081
Well, now I don't understand. Your first question was to remove the 2 spaces at the end of the form. I gave you the answer, you rejected it. Then you said there still was space left above the form. I solved this too and again you reject it. What is your problem now? I don't understand you talking about clicking on an image instead of submit...*confused*

Joseph
0
 

Author Comment

by:tong111797
ID: 2223109
um....sorry for my poor english...

the problem is when netscape detect FORM tag. it will always
leave the gap space...at top or at end of tag..

your 1st help, there r no gap after </form> but the problem
move to the top of <FORM> tag.

and your 2nd help can't solve becoz it is margin setting..
if u try the simple code below

blah
blah2<form action=sdf><input type=text><input type=submit
value=Submit></form>blah3
blah4

u will see the gap space before blah3 or after blah2

0
 
LVL 4

Expert Comment

by:oubelkas
ID: 2223214
But did you tested the last code I gave you. Both on IE and NS you'll see the table in the top left corner of the client screen. So the text will be displayed with no space left between the text itself and the table form.

Joseph
0
 
LVL 4

Expert Comment

by:oubelkas
ID: 2227590
Oh, I see, I'm sorry, you're right you don't have to use margin setting, I didn't quite test my code clearly myself. Well, the key rule here is for eliminating the space between text and form is that you must put your form tags outside of the td tags and inside the table tags, it isn't really necessary to do so, but it's better to also put the form tags inside the first tr tags. The form tag produces automaticly a line feed. The reason for putting the form tags inside the table and tr tag is that the table cells are rendered before the table is. In EE it seems to work fine, but under NS not. This has to do with that NS interpretes the table differently than EE does. I guess we'll have to live with that. I hope this clears the question.

Joseph
0
 
LVL 4

Expert Comment

by:oubelkas
ID: 2227596
But the first asked question is solved, the reason for that is given, thus with putting the form tags inside the table tags.

Joseph
0
 
LVL 4

Expert Comment

by:oubelkas
ID: 2246300
No response? It's not possible do solve your problem like I mentioned in the last comments.

Joseph
0
 

Author Comment

by:tong111797
ID: 2246341
it doesn't work..
0
 
LVL 4

Expert Comment

by:oubelkas
ID: 2246374
Ha, it worked, drawing your attention :)

You're right. It won't work with NS. But in IE it works perfectly. So the conclusion here is that NS interpretes the form differently than IE. This is the most common problem with these two browsers...the compatibility SUCKS. But we have to live with it I guess...you're not the only one with this problem..

Joseph
0
 
LVL 4

Expert Comment

by:garrethg
ID: 2246393
tong-

Have you put the form tags inside the row tags like I have suggest above?
If you did you would see that the problem is solved.

come on oubelkas stop locking the question :-(
0
 
LVL 4

Expert Comment

by:oubelkas
ID: 2246409
Yeah, sorry, garrethg, but I did it to draw the attention of tong, he might reject it, but I just hate if questions aren't given attention anymore. And garrethg, give up, it won't work, I've tried everything!! In IE it works good, but not with NS, it's NS to blame for.
:( (I hate it)

Joseph
0
 
LVL 4

Expert Comment

by:garrethg
ID: 2246503
Ah, I see the problem with the text preceeding the table now. I don't recall ever encountering that before, but I all always end up nesting tables to achieve the same results of MSIE/NSN in anycase.

With nested tables the problem totally disappears:

text
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0>
<TR>
<TD>
  <TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 BGCOLOR=#dddddd>
  <TR>
  <FORM>
  <TD>Banner ID</TD>
  <TD><input size=15 type=text name=id></TD>
  </TR>
  <TR>
  <TD>Password</TD>
  <TD><input size=15 type=password name=pass></TD>
  </TR>
  <TR>
  <TD COLSPAN=2>
  <input type=submit value=Submit>
  </TD>
  </FORM>
  </TR>
  </TABLE>
</TD>
</TR>
</TABLE>
text

Never give up Oubelkas, I'd rather die than let Navigator beat me ;-)
0
 

Author Comment

by:tong111797
ID: 2246530
sowwy i forgot to reject.. :>
0
 

Author Comment

by:tong111797
ID: 2246546
oh! cool mr.garrethg

please answer again..i will give point to u 300
0
 

Author Comment

by:tong111797
ID: 2246561
oh! cool mr.garrethg

please answer again..i will give point to u 300
0
 
LVL 4

Accepted Solution

by:
garrethg earned 1200 total points
ID: 2246603
as comment
0
 
LVL 4

Expert Comment

by:oubelkas
ID: 2246631
hmmmm, yes! VERY GOOD!!! I won't EVER give up AGAIN! YAHOO!
0
 
LVL 4

Expert Comment

by:oubelkas
ID: 2246639
...sorry I did.....I was beaten...messed up......all this trouble I went through with finding a solution for this problem.......whaaa! And what's in it for me?.........nothing....nada!.......all my time wasted!.......booohohoooo! :(((
0
 
LVL 4

Expert Comment

by:oubelkas
ID: 2246641
..and the question points are even RAISED with 100 points........this.....is......TOO.....muuucchhhh.....whaaaaaa....
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

599 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question