Created
May 16, 2012 20:40
-
-
Save scottkellum/2713764 to your computer and use it in GitHub Desktop.
Untitled
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 { | |
width: 100%; | |
} | |
@media all and (min-width: 500px) { img { background-image: url('http://tmp.pgdn.us/b.jpg'); padding-top: 100%; height: 0; background-size: 100%; }} | |
@media all and (min-width: 600px) { img { background-image: url('http://tmp.pgdn.us/c.jpg') }} | |
@media all and (min-width: 700px) { img { background-image: url('http://tmp.pgdn.us/d.jpg') }} | |
@media all and (min-width: 800px) { img { background-image: url('http://tmp.pgdn.us/e.jpg') }} | |
@media all and (min-width: 900px) { img { background-image: url('http://tmp.pgdn.us/f.jpg') }} | |
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 src="http://tmp.pgdn.us/a.jpg" alt="" /> |
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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment