I’m building a responsive website so I’ve been reading about css sprites on mobile devices and iphones. I found this article, I think it’s the right tecnique but the explanation could’ve been better. I ended up with this:
Can somebody tell me if it looks ok on the iphone? I’m not sure about that 50%.
Also, does anyone have a better article?
The
background-sizeproperty you specify for Retine enabled devices, should contain the size of the non-Retina sprite, i.e., half the width and half the height of the Retina sprite. It should be the size of the total sprite, so not just the size of a single icon within the sprite.Updated Fiddle: http://jsfiddle.net/jhogervorst/qr5fs/2/
Screenshot (Retina): https://i.stack.imgur.com/sIDnE.png
CSS: