NC: </form> have some space ..

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>
tong111797Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

oubelkasCommented:
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
tong111797Author Commented:
<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
tong111797Author Commented:
if u try to add something under the </form>
it will separate by ~2 lines of space...

i can't figure out..

0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

tong111797Author Commented:
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
tong111797Author Commented:
this is super simple..

blah
blah2<form action=sdf><input type=text><input type=submit value=Submit></form>blah3
blah4
0
oubelkasCommented:
yes,yes, I got the point :)

I'm checking it out.

0
oubelkasCommented:
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
tong111797Author Commented:
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
oubelkasCommented:
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
oubelkasCommented:
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
tong111797Author Commented:
i found out that netscape can't display correctly
and most great webmaster use js + clickable image
instead of use form submit.
0
garrethgCommented:
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
oubelkasCommented:
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
tong111797Author Commented:
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
oubelkasCommented:
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
oubelkasCommented:
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
oubelkasCommented:
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
oubelkasCommented:
No response? It's not possible do solve your problem like I mentioned in the last comments.

Joseph
0
tong111797Author Commented:
it doesn't work..
0
oubelkasCommented:
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
garrethgCommented:
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
oubelkasCommented:
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
garrethgCommented:
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
tong111797Author Commented:
sowwy i forgot to reject.. :>
0
tong111797Author Commented:
oh! cool mr.garrethg

please answer again..i will give point to u 300
0
tong111797Author Commented:
oh! cool mr.garrethg

please answer again..i will give point to u 300
0
garrethgCommented:
as comment
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
oubelkasCommented:
hmmmm, yes! VERY GOOD!!! I won't EVER give up AGAIN! YAHOO!
0
oubelkasCommented:
...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
oubelkasCommented:
..and the question points are even RAISED with 100 points........this.....is......TOO.....muuucchhhh.....whaaaaaa....
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.