Forum Moderators: open

Message Too Old, No Replies

table help

         

th1chsn

2:44 am on May 7, 2005 (gmt 0)

10+ Year Member



I created a table and its showing a space on the bottom that reveals the table underneath it. No matter what I tried to do it just won't go away.

Can anyone help me figure this out? Here is the code.

<table width="25%" border="0" cellpadding="0" cellspacing="1" bgcolor="#333333">
<!--Login Outer Table-->
<tr>
<td valign="top">
<form method="post" action="http://www.example.com/advertisers/checklogin.php" target="_blank">
<table width="100%" border="0" cellpadding="3" cellspacing="0" bgcolor="#333333">
<!--Login Table-->
<tr>
<td width="72" bgcolor="#E2E2E2" class="left">UserName:</td>
<td width="72" bgcolor="#E2E2E2" class="left">Password:</td>
</tr>
<tr>
<td bgcolor="#E2E2E2">
<input name="username" type="text" class="textbox" value="resact" size="12" maxlength="12" />
</td>
<td bgcolor="#E2E2E2">
<input name="password" type="password" class="textbox" value="demo" size="12" maxlength="12" />
</td>
</tr>
<tr>
<td colspan="2" bgcolor="#E2E2E2">
<div align="right"><input type="submit" name="Submit2" value="Submit" class="button"></div>
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>

[edited by: tedster at 5:27 am (utc) on May 7, 2005]
[edit reason] use example.com in code [/edit]

tedster

5:34 am on May 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think it's the default margin for the <form> element. Try adding the attribute style="margin:0;" to the <form> element and the extra space vanishes.

th1chsn

3:33 pm on May 7, 2005 (gmt 0)

10+ Year Member



Thanks tedster! That worked perfectly!