Posted By

zreedeecom on 08/26/12


Tagged

css retina


Versions (?)

Target retina screen with mediaquery


 / Published in: CSS
 

URL: http://lessframework.com/

I took it from lessframework.

  1. /* Retina media query.
  2. Overrides styles for devices with a
  3. device-pixel-ratio of 2+, such as iPhone 4.
  4. ----------------------------------------------- */
  5.  
  6. @media
  7. only screen and (-webkit-min-device-pixel-ratio: 2),
  8. only screen and (min-device-pixel-ratio: 2) {
  9.  
  10. body {
  11.  
  12. }
  13.  
  14. }

Report this snippet  

You need to login to post a comment.