Created
March 15, 2017 17:40
-
-
Save kosinix/a8c546104a4a0076ecca353a4bf8046e to your computer and use it in GitHub Desktop.
CSS min-width vs max-width
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 (min-width:100px) { /* Screen >= 100 */ | |
body { font-weight:bold; } | |
} | |
@media screen and (min-width:200px) { /* Screen >= 200 */ | |
body { color:#555; } | |
} | |
@media screen and (max-width:100px) { /* Screen <= 100 */ | |
body { font-weight:bold; } | |
} | |
@media screen and (max-width:200px) { /* Screen <= 200 */ | |
body { color:#555; } | |
} | |
/* | |
min-* means greater than or equals to x | |
max-* means less than or equals to x | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment