Hi again, well i've got another annoyance that i've been trying to get sorted for the past couple of hours now I haven't done anything like this before so was hoping someone folk out there could give me a hand?
As you can see from the screenshots below I'm making my own input field, so it doesn't look like the boring default view you always see on websites. I'm going to make the "Go" button rounded as well later on, but i've been spending ages on this so want the input field problem out the way first.
The input field has simply had the borders removed, a background image and padding assigned to it. It's working perfectly in Firefox and as always ... Microsoft have to always make life difficult and have the input field not working in IE.
Normal:
Firefox:
IE:
In IE the background will keep moving left and the padding will shift left with every extra letter that is typed. For the background I tried putting "fixed" into the css which sorts it in IE, but then the background image in Firefox doesn't show up at all
Has anyone got any suggestions or solutions? ... as I could really use a hand,
Thanks,
Steven.
As you can see from the screenshots below I'm making my own input field, so it doesn't look like the boring default view you always see on websites. I'm going to make the "Go" button rounded as well later on, but i've been spending ages on this so want the input field problem out the way first.
The input field has simply had the borders removed, a background image and padding assigned to it. It's working perfectly in Firefox and as always ... Microsoft have to always make life difficult and have the input field not working in IE.
Normal:

Firefox:

IE:

In IE the background will keep moving left and the padding will shift left with every extra letter that is typed. For the background I tried putting "fixed" into the css which sorts it in IE, but then the background image in Firefox doesn't show up at all

Has anyone got any suggestions or solutions? ... as I could really use a hand,
Thanks,
Steven.
Code:
<div id="search"><!-- Start of #search -->
<form action="index.asp?srch=1" method="post" name="search" class="searchform">
<input type="text" name="search" value="Start new search" onfocus="javascript:clearDefault(this)" class="searchinput" />
<input type="image" src="graphics/searchbutton.jpg" alt="Go" name="searchs" value="Go" id="Input1" class="searchsubmit" />
</form>
</div><!-- End of #search -->
Code:
#search
{
margin: 0;
padding: 0;
height: 23px;
background: #ffffff;
color: #658dbd;
font: normal 8pt arial, helvetica, san-serif;
}
.searchform
{
margin: 0;
padding: 0;
}
.searchinput
{
margin: 0;
padding: 4px 12px 1px 12px;
border: 0;
background: #ffffff url('graphics/searchinputbg2.jpg') no-repeat;
width: 99px;
height: 23px;
position: relative;
float: left;
}
.searchsubmit
{
margin: 0;
padding: 0;
position: relative;
float: right;
}