Somchai
asked on
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>
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>
ASKER
<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>Advertise r 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>
<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>Advertise
</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>
ASKER
if u try to add something under the </form>
it will separate by ~2 lines of space...
i can't figure out..
it will separate by ~2 lines of space...
i can't figure out..
ASKER
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
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
ASKER
this is super simple..
blah
blah2<form action=sdf><input type=text><input type=submit value=Submit></form>blah3
blah4
blah
blah2<form action=sdf><input type=text><input type=submit value=Submit></form>blah3
blah4
yes,yes, I got the point :)
I'm checking it out.
I'm checking it out.
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
<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
ASKER
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
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
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 :)
<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 :)
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
Well, if this isn't what you want....
Joseph
ASKER
i found out that netscape can't display correctly
and most great webmaster use js + clickable image
instead of use form submit.
and most great webmaster use js + clickable image
instead of use form submit.
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>
<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>
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
Joseph
ASKER
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
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
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
Joseph
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
Joseph
But the first asked question is solved, the reason for that is given, thus with putting the form tags inside the table tags.
Joseph
Joseph
No response? It's not possible do solve your problem like I mentioned in the last comments.
Joseph
Joseph
ASKER
it doesn't work..
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
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
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 :-(
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 :-(
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
:( (I hate it)
Joseph
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 ;-)
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 ;-)
ASKER
sowwy i forgot to reject.. :>
ASKER
oh! cool mr.garrethg
please answer again..i will give point to u 300
please answer again..i will give point to u 300
ASKER
oh! cool mr.garrethg
please answer again..i will give point to u 300
please answer again..i will give point to u 300
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
hmmmm, yes! VERY GOOD!!! I won't EVER give up AGAIN! YAHOO!
...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....nad a!.......a ll my time wasted!.......booohohoooo! :(((
..and the question points are even RAISED with 100 points........this.....is. .....TOO.. ...muuucch hhh.....wh aaaaaa....
Joseph