Created
September 9, 2015 16:14
-
-
Save XuankangLin/bab5aca0451547ea3f33 to your computer and use it in GitHub Desktop.
Simple CSS style for letting web page adjust according to browser size. Not perfect.
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: 1000px) { | |
body { | |
width: 960px; | |
margin: auto; | |
} | |
} | |
@media screen and (max-width: 1000px) { | |
body { | |
width: 95%; | |
margin: auto; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment