IE8+ Retina and Responsive Images
.logo {
display: block;
width: 100px;
height: 80px;
text-indent: -9999em;
background: url(img/logo.png) no-repeat;
background-size: cover;
@media
(-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
background-image: url(img/logo@2x.png);
}
@media
(max-width: 700px) {
width: 75px;
height: 60px;
}
}
Written by Cory Simmons
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Css
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#