NameSilo

This is simple yet annoying..

Spaceship Spaceship
Watch

noswad

Established Member
Impact
1
Hi.

I have a table and a search box within it. Everything is fine in Dreamweaver but when I put the site on the server, for some reason the height of the table is twice as high as the search box. All I want is for the table to fit nicely around the search box.


This is the code....

<table width="100%" border="0" cellpadding="6" cellspacing="0">
<tr bgcolor="2c5b8c">
<td width="99%" bgcolor="2c5b8c"><form name="form1" method="get" action="http://www.domain.com">
<div align="right">
<input name="textfield" type="text" value="e.g. Amazon">
<input type="submit" name="Submit" value="Search">
</div>
</form></td>
<td width="1%" bgcolor="2c5b8c">
</td>
</tr>
</table>

Why oh why is it doing it?

Thanks for viewing :hehe:
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Give the table and the inputs a height.
 
0
•••
That correct, Dan was right.
 
0
•••
I think it's the form tag. Add this CSS:
Code:
<style>
form {
  padding: 0px;
  margin: 0px;
}
</style>
 
0
•••
Jim you are correct. Thanks you and to everyone else also :hehe:
 
Last edited:
0
•••
all your style sheets should contain Jim's code by default ;p
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back