Hi.
I have the following code:
<form action="" >
<div id="search-box">
<input id="search-input" ...>
<input id="btn-search" value="search" type="submit" />
</div>
</form>
And the following css:
#search-box
{
width: 430px;
margin: 0px 0px 2px 330px;
height: 45px;
background: transparent url(../images/bg-search.png) no-repeat;
}
#search-box #search-input
{
margin:7px 0px 0px 5px;
width: 300px;
height: 26px;
}
#search-box #btn-search
{
width: 84px;
height: 32px;
background: transparent url(../images//btn_search.png) no-repeat;
}
The problem is that in IE7 the margin-left of #search-box is like also applied to the #search-input so it pushes the input more to the right.
Works fine in Firefox and IE8.
Any tips?