SHARE
TWEET

Retina Display Background Images via CSS

a guest Mar 12th, 2012 2,379 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @media only screen and (-webkit-min-device-pixel-ratio: 2) {
  2.   .ui-page {
  3.     background: transparent url(path/to/2x.jpg);
  4.     background-size: Xpx Ypx;
  5.   }
  6. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top