Solved

Background image for my search box is moving when I type text into it in Internet Explorer -- must fix!

Posted on 2008-10-07
2
586 Views
Last Modified: 2013-12-08
If you type enough text into my search box on this page (when viewing the page in IE 6 or 7 ...

http://www.sutrafitadventures.com/

... you'll notice that that the background image that I have specified for that text input box starts to scroll horizontally, .. which looks ridiculous.  This problem doesn't happen in Firefox, Safari, or Chrome.

Is there any way I can fix this?   Here is the CSS that I have in place for the search input field:

.searchfield {
      border:0px;
      background-image:url(../images/searchbox_bg.jpg);
      background-position:fixed;
      height:17px;
      width:86px;
      padding:0px;
      padding-left:65px;
      margin-top:5px;
      padding-top:3px;      
      }

Thanks in advance,
- Yvan
0
Comment
Question by:egoselfaxis
2 Comments
 
LVL 5

Accepted Solution

by:
Devario Johnson earned 500 total points
ID: 22663914
Might I suggest going about this a different way by

1) making a DIV to hold the input form field for your search but set the image as the background of that Div.

then have your input text field to the right of the div (paadding-left) enough to show the search word.

that should kill your headache
0
 

Author Comment

by:egoselfaxis
ID: 22678703
Devarioj -- that was an excellent suggestion.  Thank you.

http://www.sutrafitadventures.com/

- Yvan
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
The viewer will learn how to dynamically set the form action using jQuery.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now