Here's the CSS code I'm working with:
#navigation input#search_bar {
background: url(images/searchbar.png) no-repeat;
border: none;
height: 20px;
width: 156px;
margin: 0;
}
#navigation input#submit {
background: url(images/submit.png) no-repeat;
width: 30px;
height: 20px;
margin-left: -30px;
border: none;
}
HTML:
<div id="navigation">
<ul>
<li><a href="#">home</a></li>
<li><a href="#">services</a></li>
<li><a href="#">about us</a></li>
<li><a href="#">portfolio</a></li>
<li><a href="#">contact us</a></li>
</ul>
<input id="search_bar" type="text" name="search_bar" />
<input id="submit" type="submit" name="search_submit" value="" />
</div>
The submit button is never inline with the search bar, but either above or below it by a small or large amount depending on the browser.
Example:
Here's the two images I'm working with:
Complete code: