asa_carter
11-26-2007, 09:26 PM
Hi
I am trying to align an image as a submit button next to a text box that contains some padding but there is always a 1px difference between IE and FF.
What would be the correct way to get it to render correctly in both browsers?
input {
font-size:11px;
color:#333333;
}
.search_box {
border:#d39f7b solid 1px;
padding-top:2px;
}
<form>
<table cellpadding="0" cellspacing="0">
<tr>
<td><input name="search" class="search_box" type="text" size="25" /></td>
<td><input type="image" src="images/search.gif" alt="Search" /></td>
</tr>
</table>
</form>
I am trying to align an image as a submit button next to a text box that contains some padding but there is always a 1px difference between IE and FF.
What would be the correct way to get it to render correctly in both browsers?
input {
font-size:11px;
color:#333333;
}
.search_box {
border:#d39f7b solid 1px;
padding-top:2px;
}
<form>
<table cellpadding="0" cellspacing="0">
<tr>
<td><input name="search" class="search_box" type="text" size="25" /></td>
<td><input type="image" src="images/search.gif" alt="Search" /></td>
</tr>
</table>
</form>