Skip to content

Instantly share code, notes, and snippets.

@jensgro
Created November 13, 2011 14:03
Show Gist options
  • Save jensgro/1362137 to your computer and use it in GitHub Desktop.
Save jensgro/1362137 to your computer and use it in GitHub Desktop.
Media Queries für ein externes CSS
/* Am Anfang steht CSS für alle */
body { /* allgemeine Regeln */}
@media only screen and (min-width: 480px) {
/* mobile Browser */
}
@media only screen and (min-width: 768px) {
/* Tablets im Portrait Modus */
}
@media only screen and (min-width: 768px) {
/* Tablets im Landscape Modus, Netbooks, Notebooks, Desktop Browser */
}
@media print {
/* Das Printstylesheet nicht vergessen! */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment