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

  • Home
  • SEARCH
  • 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 8458099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:59:11+00:00 2026-06-10T12:59:11+00:00

As we know hover effect dose not allow in iPad, but i want to

  • 0

As we know hover effect dose not allow in iPad, but i want to change button image when user click on the button. Below css work fine except iPad and iPhone device.

.back-btn {
background: url("images/sprite.png") no-repeat scroll 0 0 transparent;
}
.back-btn:hover, .back-btn:active {
background: url("images/sprite.png") no-repeat scroll 0 -10px transparent;
}

Thanks
AV

  • 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-10T12:59:13+00:00Added an answer on June 10, 2026 at 12:59 pm

    The problem is you need to look for the touchstart event for the iPad to recognize it, and you can set the hover event otherwise. With a little browser sniffing – boom you should be good to go. (jQuery-wise)

    var ua = navigator.userAgent,
        event = (ua.match(/iPad/i)) ? "touchstart" : "hover";
    
    $(".back-btn").bind(event, function(e) {
        $(this).css('background', 'url("images/sprite.png") no-repeat scroll 0 -10px transparent;');
    });
    

    More information on html5 touch events here.

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

Sidebar

Related Questions

How to set image for button and hover effect for prev and next button
On hover I want my div to scroll down. I know i can use
I've written a little JS code to change the classname on hover. I know
I know you can not set a key value dynamically, but what about the
I know that Phonegap has an event for back button, but it's only available
I'm having an issue with IE not rendering a :hover effect. Here is my
I dont know whats wrong with this Code. The left hover works properly but
I want to make a flasher effect: when hover on some specified field there
I want to add a block hover effect on my menu. However, the template
I know that definitions for :hover must come before the definition for :active in

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.