Skip to content

Instantly share code, notes, and snippets.

@mikeyakymenko
Last active December 14, 2015 02:19
Show Gist options
  • Save mikeyakymenko/5013295 to your computer and use it in GitHub Desktop.
Save mikeyakymenko/5013295 to your computer and use it in GitHub Desktop.
mediaqueries pattern..
@media all and (max-width: 1024px) {
/* styles for narrow desktop browsers and iPad landscape */
}
@media all and (max-width: 768px) {
/* styles for narrower desktop browsers and iPad portrait */
}
@media all and (max-width: 480px) {
/* styles for iPhone/Android landscape (and really narrow browser windows) */
}
@media all and (max-width: 320px) {
/* styles for iPhone/Android portrait */
}
@media all and (max-width: 240px) {
/* styles for smaller devices */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment