Skip to content

Instantly share code, notes, and snippets.

@embayer
Last active August 29, 2015 14:26
Show Gist options
  • Save embayer/7347dbeeceec8897dd98 to your computer and use it in GitHub Desktop.
Save embayer/7347dbeeceec8897dd98 to your computer and use it in GitHub Desktop.
common css breakpoints
@media (min-width:320px) {
/* smartphones, iPhone, portrait 480x320 phones */
body {background-color: red}
}
@media (min-width:481px) {
/* portrait e-readers (Nook/Kindle), smaller tablets @ 600 or @ 640 wide. */
body {background-color: orange}
}
@media (min-width:641px) {
/* portrait tablets, portrait iPad, landscape e-readers, landscape 800x480 or 854x480 phones */
body {background-color: yellow}
}
@media (min-width:961px) {
/* tablet, landscape iPad, lo-res laptops ands desktops */
body {background-color: green}
}
@media (min-width:1025px) {
/* big landscape tablets, laptops, and desktops */
body {background-color: aqua}
}
@media (min-width:1281px) {
/* hi-res laptops and desktops */
body {background-color: blue}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment