Skip to content

Instantly share code, notes, and snippets.

@greypants
Forked from madrobby/gist:4161897
Created December 10, 2012 20:25
Show Gist options
  • Save greypants/4253097 to your computer and use it in GitHub Desktop.
Save greypants/4253097 to your computer and use it in GitHub Desktop.
CSS: Retina screen media query
@media (min--moz-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: 144dpi),
(min-resolution: 1.5dppx) {
/* Retina rules! */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment