Skip to content

Instantly share code, notes, and snippets.

@brittanydionigi
Created January 28, 2014 01:44
Show Gist options
  • Save brittanydionigi/8660998 to your computer and use it in GitHub Desktop.
Save brittanydionigi/8660998 to your computer and use it in GitHub Desktop.
responsive CSS template for development
/* RED 1024 */
@media only screen and (max-width: 1024px) {
body { background-color: rgba(255, 0, 0, 0.5); }
}
/* ORANGE 972 */
@media only screen and (max-width: 972px) {
body { background-color: rgba(255, 165, 0, 0.5); }
}
/* YELLOW 768 */
@media only screen and (max-width: 768) {
body { background-color: rgba(255, 255, 0, 0.5); }
}
/* GREEN 767 */
@media only screen and (max-width: 767px) {
body { background-color: rgba(0, 128, 0, 0.5); }
}
/* BLUE 480 */
@media only screen and (max-width: 480px) {
body { background-color: rgba(0, 0, 255, 0.5); }
}
/* PURPLE 320 */
@media only screen and (max-width: 320px) {
body { background-color: rgba(128, 0, 128, 0.5); }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment