antonielloj
05-06-2003, 04:55 PM
hey all. ive got a simple form that has been placed inside a pretty complex page layout. for some reason, it seems as though the <form> tag is creating an undesired border around the form when i look at it on windows version of IE (all other platforms and browsers render ok). this 'padding' is pushing down all other table elements and compeltely throwing off the layout of the page.
i know that the problem is explicitly related to the <form> tag, because when i comment out the <form> and </form> tags, the page renders correctly.
here is the code for my form, incase it helps. i've set border=0 on all input objects, still to no avail. is there any way to circumvent this problem via CSS or some other attirbute that im simply not aware of? any help would be greatly appreciated. cheers!
---
<form action="blahblahblah.asp" method="post" name="search" target="_blank" language="JavaScript" onsubmit="return ValidateZip()">
<tr>
<td><IMG src="images/vt/findcomicshopsh.gif" WIDTH=110 HEIGHT=12 ALT="" border=0></td>
</tr><tr>
<td>
<TABLE WIDTH=143 BORDER=0 CELLPADDING=0 CELLSPACING=0 class="font">
<tr>
<td><IMG src="images/vt/spacer.gif" WIDTH=14 HEIGHT=1 ALT="" border=0></td>
<td><INPUT TYPE="text" name="Zip" SIZE="10" VALUE="enter zip" border=0></td>
<td><input name="image" type="image" src="/dccomics/3_0/images/vt/gob.gif" ALT="GO" WIDTH=24 HEIGHT=9 BORDER=0></td>
</tr>
</table>
</td>
</tr>
</form>
i know that the problem is explicitly related to the <form> tag, because when i comment out the <form> and </form> tags, the page renders correctly.
here is the code for my form, incase it helps. i've set border=0 on all input objects, still to no avail. is there any way to circumvent this problem via CSS or some other attirbute that im simply not aware of? any help would be greatly appreciated. cheers!
---
<form action="blahblahblah.asp" method="post" name="search" target="_blank" language="JavaScript" onsubmit="return ValidateZip()">
<tr>
<td><IMG src="images/vt/findcomicshopsh.gif" WIDTH=110 HEIGHT=12 ALT="" border=0></td>
</tr><tr>
<td>
<TABLE WIDTH=143 BORDER=0 CELLPADDING=0 CELLSPACING=0 class="font">
<tr>
<td><IMG src="images/vt/spacer.gif" WIDTH=14 HEIGHT=1 ALT="" border=0></td>
<td><INPUT TYPE="text" name="Zip" SIZE="10" VALUE="enter zip" border=0></td>
<td><input name="image" type="image" src="/dccomics/3_0/images/vt/gob.gif" ALT="GO" WIDTH=24 HEIGHT=9 BORDER=0></td>
</tr>
</table>
</td>
</tr>
</form>