Skip to content

Instantly share code, notes, and snippets.

@jonbellah
Created April 16, 2013 15:57
Show Gist options
  • Save jonbellah/5397148 to your computer and use it in GitHub Desktop.
Save jonbellah/5397148 to your computer and use it in GitHub Desktop.
Designing for Retina: CSS and background-images
.logo {
background: url(images/example.jpg);
}
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
.logo {
background: url(images/[email protected]);
background-size: 100px 100px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment