Created
April 28, 2011 18:03
-
-
Save fixlr/946884 to your computer and use it in GitHub Desktop.
Example of a basic CSS media query.
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 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