Please see this jsFiddle example. The background image I have used on textbox pushes out of view in IE when you type in long values:
Solution (in case jsfiddle gets deleted)
CSS
#txt_services_by_zip_code_search{
border: none;
float: left;
height: 22px;
width: 95px;
padding:0 5px;
background: transparent
}
#txt_services_by_zip_code_search_wrapper {
background: transparent url('http://i.imgur.com/quh2W.gif') no-repeat 0 -25px;
display: inline-block;
*display: inline;
zoom: 1
}
HTML
<div id="txt_services_by_zip_code_search_wrapper">
<input type="text" name="services_by_zip_code_search" id="txt_services_by_zip_code_search" class="txt_services_by_zip_code_search" />
</div>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…