You may remember my problem of getting form elements to display consistently in an inline navigation menu. I had a workable result in IE7, Safari, and Firefox with the following:
HTML:
and
CSS:
IE6 doesn't like this code, and actually, neither does the iPhone Safari browser, even though desktop Safari looks fine. (Same result between IE 6 and Safari for iPhone).
Any suggestions? Does IE6 add img element formatting that I should override?
HTML:
Code:
<div id="NavButtons">
<?php include_once "header.php"; ?>
</div><!-- End of NavButtons -->
and
Code:
<div id="search"><form method="get" id="searchform" action="<?php bloginfo('url'); ?>">
<div id="searchfield"><input type="text" value="<?php the_search_query(); ?>" name="s" id="s" /></div>
<div id="searchbutton"><button type="submit" style="border: 0; background: transparent;" value="">
<img src="http://eidolonmarketing.com/wordpress/images/search.jpg" width="70" height="20" alt="submit" /> </button></div>
</form></div> <!-- End of Search -->
CSS:
Code:
#search {
float: left;
display: inline;
width: 243px;
height: 20px;
}
#searchfield #s {
float: left;
display: inline;
width: 150px;
height: 18px;
margin-top: 2px;
margin-left: 8px;
margin-right: 5px;
border: 1px solid #CAC4B6;
}
#searchbutton {
float: left;
display: inline;
height: 20px;
width: 70px;
margin-top: 1px;
}
IE6 doesn't like this code, and actually, neither does the iPhone Safari browser, even though desktop Safari looks fine. (Same result between IE 6 and Safari for iPhone).
Any suggestions? Does IE6 add img element formatting that I should override?