Guest User

Retina Display Background Images via CSS

a guest
Mar 12th, 2012
2,436
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