Skip to content

Instantly share code, notes, and snippets.

@fixlr
Created April 28, 2011 18:03
Show Gist options
  • Save fixlr/946884 to your computer and use it in GitHub Desktop.
Save fixlr/946884 to your computer and use it in GitHub Desktop.
Example of a basic CSS media query.
@media all and (max-device-width: 480px) {
//
// Define new CSS rules here for screens
// that are less than 480px wide.
//
// These rules will need to OVERRIDE the global
// styles that you have previously declared.
//
body {
font-size: 12px;
background-color: #fff;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment