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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:25:06+00:00 2026-06-18T01:25:06+00:00

I have a problem loading retina images. I have got two imagesprites. One normal

  • 0

I have a problem loading retina images.
I have got two imagesprites. One normal and one retina.
The problem is that I don’t know how to scale down the retina image, it is now twice the size.
This is my css.

.home {
    background: url('../images/buttonSprite.png') -49px -52px;
    width: 43px;
    height: 43px;
}
@media all and (-webkit-min-device-pixel-ratio: 2) {
    .home {
        background: url('../images/buttonSprite@2x.png') no-repeat -79px -113px !important;
        -webkit-background-size:43px 43px;
    }
}

How to solve this problem?

  • 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-18T01:25:07+00:00Added an answer on June 18, 2026 at 1:25 am

    Try just this:

    .home {
        background: url('http://img580.imageshack.us/img580/9284/buttonsprite.png') no-repeat -49px -53px;
        width: 43px;
        height: 43px;
    }
    
    @media all and (-webkit-min-device-pixel-ratio: 1.5), all and (-moz-min-device-pixel-ratio: 1.5), all and (-o-min-device-pixel-ratio: 3/2), all and (min-device-pixel-ratio: 1.5) {
        .home {
            background: url('http://img90.imageshack.us/img90/5624/buttonsprite2x.png') no-repeat -39px -56px;
            background-size: 200px 496px;
        }
    }
    

    Notice that I used a pixel-ratio of 1.5, that’s pretty much a standard. I also included the other prefixes.

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

Sidebar

Related Questions

i have a problem while loading a UITableView on UITabBarController, i got this error
I am loading some text dynamically into a div, but have the problem that
I have C#/WPF that has a persistent problem loading/resolving the System.Windows.Interactivity I am using
I have a problem regarding my JTable, I don't know how can I store
I have this strange problem about loading images using AsyncTask in ListView.In my ListView,
I have problem with loading images from the Documents folder of iPhone application into
I have problem and don't know how to get some clues on what might
I have problem with loading my jqGrid. It just loads two parallel lines, and
I have a problem loading different nib files in one tableView. I saw this
I have problem while loading data into html select when users press or click

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.