Skip to content

Instantly share code, notes, and snippets.

@nicoandrade
Created April 17, 2020 15:25
Show Gist options
  • Save nicoandrade/9be23b88601c7e7a426369a59fb27fae to your computer and use it in GitHub Desktop.
Save nicoandrade/9be23b88601c7e7a426369a59fb27fae to your computer and use it in GitHub Desktop.
Best Responsive CSS Breakpoints
/* Source: https://www.freecodecamp.org/news/the-100-correct-way-to-do-css-breakpoints-88d6a5ba1862/ */
/* phone-only */
@media (max-width: 599px) {
/* ... */
}
/* tablet-portrait-only */
@media (min-width: 599px) and (max-width: 899px) {
/* ... */
}
/* tablet-landscape-only */
@media (min-width: 900px) and (max-width: 1199px) {
/* ... */
}
/* desktop-only */
@media (min-width: 1200px) and (max-width: 1799px) {
/* ... */
}
/* big-desktop-only */
@media (min-width: 1800px) {
/* ... */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment