Created
April 2, 2012 08:19
-
-
Save creynders/2281612 to your computer and use it in GitHub Desktop.
Media query overwrites
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 screen and (max-device-width: 480px){ | |
#foo{ | |
max-width: 270px; | |
} | |
} | |
/* wil overwrite previous rule if device resolution is bigger */ | |
@media screen and (min-device-width: 481px){ | |
#foo{ | |
max-width: 540px; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment