Kevin_M_Schafer
04-11-2011, 08:01 PM
I have this seach box problem. Without a table, the search box is just the right length in IE9. But in Firefox it's way too long and also in Chrome.
I placed the search box in a table and that didn't help. The seach box is still different lengths inside the table. I then placed the search box inside a DIV. that didn't help either.
How can a person keep a search box the same length in all browsers?
Here is my code:
<table>
<table border="0" bordercolor="0" width="200" bgcolor="f0f0f0"><tr><td>
<div><style>
.searchBox{
background-image:url('index_files/tmg.gif');
background-repeat:no-repeat;
padding-left:20px;
}
</style>
<form style="margin:0;" method="get" action="http://www.mysearchengine.com/cgi-bin/ts.pl">
<input type="hidden" name="index" value="000000" />
<input type="text" name="query" class="searchBox" name="query" value="Search" size="22" onfocus="if (this.defaultValue==this.value) this.value='';"></form></div></tr></td></table>
I placed the search box in a table and that didn't help. The seach box is still different lengths inside the table. I then placed the search box inside a DIV. that didn't help either.
How can a person keep a search box the same length in all browsers?
Here is my code:
<table>
<table border="0" bordercolor="0" width="200" bgcolor="f0f0f0"><tr><td>
<div><style>
.searchBox{
background-image:url('index_files/tmg.gif');
background-repeat:no-repeat;
padding-left:20px;
}
</style>
<form style="margin:0;" method="get" action="http://www.mysearchengine.com/cgi-bin/ts.pl">
<input type="hidden" name="index" value="000000" />
<input type="text" name="query" class="searchBox" name="query" value="Search" size="22" onfocus="if (this.defaultValue==this.value) this.value='';"></form></div></tr></td></table>