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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:02:34+00:00 2026-06-10T00:02:34+00:00

I want to use a Submit Button Image instead of the standard Button. I

  • 0

I want to use a Submit Button Image instead of the standard Button. I searched on Google and SO and got a few different ways.

Which is the right way of using an Image as a Submit Button ?

Also i would want to add three states for the button – normal, hover, onclick

What i tried

HTML

<input type="submit" value="Subscribe">

CSS

input[type=submit] {
    background:url(../images/btn-subscribe.gif) none;
    text-indent:-9999px;
    width:109px;
    height:41px;
}

What shows up

enter image description here

What it should Display

enter image description here

  • 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-10T00:02:35+00:00Added an answer on June 10, 2026 at 12:02 am

    Edited:

    I think you are trying to do as done in this DEMO

    There are three states of a button: normal, hover and active

    You need to use CSS Image Sprites for the button states.

    See The Mystery of CSS Sprites

    /*CSS*/
    
    .imgClass { 
    background-image: url(http://inspectelement.com/wp-content/themes/inspectelementv2/style/images/button.png);
    background-position:  0px 0px;
    background-repeat: no-repeat;
    width: 186px;
    height: 53px;
    border: 0px;
    background-color: none;
    cursor: pointer;
    outline: 0;
    }
    .imgClass:hover{ 
      background-position:  0px -52px;
    }
    
    .imgClass:active{
      background-position:  0px -104px;
    }
    <!-- HTML -->
    <input type="submit" value="" class="imgClass" />
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use javascript to compute values without pressing on the submit button.
I want to use submit from my markup, to an ASP.net MVC action. Then
I don't want to submit projectname.project folder. Now, I use like that git add
I want to upload an image use something like <form ...> <input type=file id=upload></input>
I have a FORM that I want to use an IMG, instead of an
I have two reasons I want to use csssprites for submit buttons : I
i am using following code to set an image as submit button *<input type=submit
I want to add a function to a form, so when the submit button
I have a global form which I want to use the same form every
Hi CSS savvies out there! I got this image that I use as a

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.