Target retina screen with mediaquery


/ Published in: CSS
Save to your folder(s)

I took it from lessframework.


Copy this code and paste it in your HTML
  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. }

URL: http://lessframework.com/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.