Created
May 14, 2015 08:50
-
-
Save adikahorvath/9de76cd70ae1e735fe2d to your computer and use it in GitHub Desktop.
Safari 5 responsive image bug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
img { | |
display: block; | |
height: auto; | |
max-width: 100%; | |
} | |
/* safari 5 bug */ | |
@media screen and (-webkit-min-device-pixel-ratio:0) { | |
img { | |
max-width: 100%; | |
height: auto; | |
width: auto; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment