Skip to content

Instantly share code, notes, and snippets.

@XuankangLin
Created September 9, 2015 16:14
Show Gist options
  • Save XuankangLin/bab5aca0451547ea3f33 to your computer and use it in GitHub Desktop.
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.
@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