Skip to content

Instantly share code, notes, and snippets.

@sindre
Forked from madrobby/gist:2997187
Created June 27, 2012 12:20
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
The ultimate media query to rule them all ("all" being high DPI/"Retina" screens)
@media (-moz-min-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (-webkit-min-device-pixel-ratio: 1.5), (min-device-pixel-ratio: 1.5), (min-resolution: 1.5dppx) {
/* "retina" styles */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment