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
595 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
The viewer will learn how to count occurrences of each item in an array.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

729 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