Created
July 21, 2018 09:30
-
-
Save patricoferris/7adc32992480802e389379b64ce32d14 to your computer and use it in GitHub Desktop.
Media Queries for Image Optimisation
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
@media only screen and (min-width: 600px) { | |
background-image: url('supercoolimages/dog-small.png'); | |
} | |
@media only screen and (min-width: 992px) { | |
background-image: url('supercoolimages/dog-big.png'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment