Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7717693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:58:03+00:00 2026-06-01T02:58:03+00:00

EDIT: You can see the search box live here . Before I explain, let

  • 0

EDIT: You can see the search box live here.

Before I explain, let me show you the code I am using:

HTML

<div class="SiteSearch">
    <form action="/search" id="searchform" method="get">
        <input x-webkit-speech="" autocomplete="off" type="text" id="gText" name="q" id="q" onblur="if (this.value == '') {this.value = 'Search';}" onfocus="if (this.value == 'Search') {this.value = '';}" value ='' "search" placeholder="Search.."/>
        <input type="submit" id="gBtn"/>
    </form>
</div>

CSS

#Head .SiteSearch {
  top: 12px;
  right: 0;
}

#Head .SiteSearch {
  float: right;
  position: relative;
}

input#gText {
  float: left;
  width: 225px;
  height: 23px;
  line-height: 24px;
  text-indent: 5px;
  font-family: arial,sans-serif;
  font-size: 1em;
  color: #333;
  background: white;
  border: solid 1px #D9D9D9;
  border-top: solid 1px silver;
  border-right: none;
  vertical-align: middle;
  -webkit-appearance: none;
  -webkit-border-radius: 0px;
}

#searchform #gBtn {
  background-image: url('search.png');
  width: 31px;
  height: 27px;
}

#gBtn {
  vertical-align: middle;
  cursor: pointer;
  width: 40px;
  height: 31px;
  line-height: 100%;
  padding: 0;
  font-size: 0;
  text-indent: -999px;
  color: transparent;
  background-position: 0 0;
  border: none;
  -webkit-appearance: none;
  -webkit-border-radius: 0px;
}

input#gBtn:hover {
  background-position: 31px 0;
  border: none;
}

This is how the search box looks on IE7 vs. IE8/IE9:

Imgur vs. Imgur

As you can see above, the input button image isn’t being shown in IE7. How can I fix this?

Any help is appreciated. Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T02:58:04+00:00Added an answer on June 1, 2026 at 2:58 am

    I fixed it by modifying the CSS code like so:

    #Head .SiteSearch {
      top: 12px;
      right: 0;
    }
    
    #Head .SiteSearch {
      float: right;
      position: relative;
    }
    
    input#gText {
      float: left;
      width: 225px;
      height: 23px;
      line-height: 24px;
      text-indent: 5px;
      font-family: arial,sans-serif;
      font-size: 1em;
      color: #333;
      background: white;
      border: solid 1px #D9D9D9;
      border-top: solid 1px silver;
      border-right: none;
      vertical-align: middle;
      -webkit-appearance: none;
      -webkit-border-radius: 0px;
    }
    
    /* REMOVED THIS PIECE
      #searchform #gBtn {
      background-image: url('search.png');
      width: 31px;
      height: 27px;
    }*/
    
    #gBtn {
      vertical-align: middle;
      cursor: pointer;
      width: 40px;
      height: 31px;
      line-height: 100%;
      padding: 0;
      font-size: 0;
      text-indent: -999px;
      color: transparent;
      background-image: url('search.png'); /* ADDED */
      background-position: 0 0;
      border: none;
      -webkit-appearance: none;
      -webkit-border-radius: 0px;
    }
    
    input#gBtn:hover {
      background-image: url('search.png'); /* ADDED - BUT OPTIONAL */
      background-position: 31px 0;
      border: none;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I downloaded TeamCity 5 and I can see the option for Git under Edit
I have just successfully installed CakePHP and I see that I can edit the
Edit: You can get the full source here: http://pastebin.com/m26693 Edit again: I added some
In the below code onclick edit how can the value of tag test be
Is there any external library using which one can edit and save XML files
I have a page where the user can edit various content using buttons and
I'm using NHibernate Search for NHibernate 3.0 GA. I have this code in my
I'm running into an issue where webrat can't see checkboxes. I have some code
Are there any editors that can edit multi-gigabyte text files, perhaps by only loading
Is there a tool where you can edit a .NET dll directly? .net reflector

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.