Created
April 4, 2011 11:47
-
-
Save Schepp/901516 to your computer and use it in GitHub Desktop.
CSS suggestion refering to http://www.cloudfour.com/examples/mediaqueries/image-test/
This file contains 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
<style type="text/css"> | |
@media all and (min-width: 501px) { | |
#test5 {background-image:url('test5-desktop.png');width:200px;height:75px;} | |
} | |
@media all and (max-width: 500px) { | |
#test5 {background-image:url('test5-mobile.png');width:200px;height:75px;} | |
} | |
/* ------------------------ | |
Safari/WebKit parser barrier | |
Safari and WebKit mobile won't parse beyond this point | |
------------------------ */ | |
@charset "utf-8"; | |
#test5 {background-image:url('test5-desktop.png');width:200px;height:75px;} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment