Skip to content

Instantly share code, notes, and snippets.

@rachelbaker
Created August 23, 2012 15:12
Show Gist options
  • Select an option

  • Save rachelbaker/3437624 to your computer and use it in GitHub Desktop.

Select an option

Save rachelbaker/3437624 to your computer and use it in GitHub Desktop.
boilerplate for CSS media queries on responsive sites
// Option 1 - for sites with a max-width of around 1140px
// --------------------------------------------------
//
@media (max-width: 640px) {
}
@media (max-width: 1024px) {
}
@media (min-width: 1400px) {
}
// Option 2 - for sites with a max-width around 1224px
// --------------------------------------------------
//
@media (max-width: 800px) {
}
@media (max-width: 1140px) {
}
@media (min-width: 1600px) {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment