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
592 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
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.
The viewer will learn how to dynamically set the form action using jQuery.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

860 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