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 7874595
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:50:10+00:00 2026-06-03T02:50:10+00:00

This button is before CSS Sprites <input type=image src=/images/search-button.png value= id=search-button> I’m trying to

  • 0

This button is before CSS Sprites

<input type="image" src="/images/search-button.png" value="" id="search-button">

I’m trying to implement CSS Sprites with one of my search form and the problem is that if I use

<input id="search-button" class="sprites1" type="submit" value="">

it will look something like this.

enter image description here

As you can see the image on the right doesn’t look right, but it is click-able.

Then I tried with

<span id="search-button" class="sprites1"></span>

enter image description here

Then it looks right! But!! I can’t click on it.

So here is my CSS sprites code.

What I have to implement to get it look the one I want and I can click on it?

 .sprites1 {
        background: url('result.png');
    }
#search-button {background-position: -0px -462px; 

                width:16px; height:16px; float:right; }
  • 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-03T02:50:12+00:00Added an answer on June 3, 2026 at 2:50 am

    The problem here is the default css that the browser uses on elements. You should try resetting that css. I often use the following snippet:

    /*  reset css of buttons */
    .cssresetbutton {
        border-width: 0px;
        border-style: none;
        background: inherit;
        font: inherit;
        color: blue;
        padding: 0px; }
    
    .cssresetbutton:active {
        border-width: 0px;
        border-style: none;
        background: inherit;
        outline: 0;
        box-shadow: none; }
    

    try adding the cssresetbutton class to your input element and see if it works.

    EDIT:
    You can also try not using a input[type=submit] element. For example:

    <span id="search-button" class="sprites1" onClick="document.getElementById('formid').submit()"></span>
    

    It will submit the form#formid element when clicked.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have this button xml, when it be will pressed, the pressed image(b) would
I've this button $('#galery .buttonClose').button({ icons: { primary: ui-icon-closethick, text: false } }); css
I am have buttons like this: <button type=button class=img img_button_bla onclick=...>Bla!</button> The img class
I have a this setup: <div id=button>Button</div> and this for CSS: #button { color:
I'm trying to apply CSS to the element next to a radio button, but
I have a jQuery UI Button that I am trying to style using CSS.
How can I do something like this in CSS: #red-button { .red } #green-button
I have this button on the leftside of my UISplitViewController (RootViewController) that has a
I have this button which is not working correctly for hold button for a
I want do something like this: Button btn1 = new Button(); btn1.Click += new

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.