Skip to content

Instantly share code, notes, and snippets.

@benbowler
Created May 22, 2013 16:44
Show Gist options
  • Save benbowler/5629045 to your computer and use it in GitHub Desktop.
Save benbowler/5629045 to your computer and use it in GitHub Desktop.
Want the base CSS for a responsive website? I've used this so many times recently.
/* Responsiveness */
/* Large desktop */
@media (min-width: 1200px) {
}
/* Portrait tablet to landscape and desktop */
@media (min-width: 768px) and (max-width: 979px) {
}
/* Landscape phone to portrait tablet */
@media (max-width: 767px) {
}
/* Landscape phones and down */
@media (max-width: 480px) {
body {
font-size: 70%;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment