Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
CSS screen media queries
@media (min-width: 640px) {
/* mobile (sm) */
}
@media (min-width: 768px) {
/* tablet (md) */
}
@media (min-width: 1024px) {
/* laptop (lg) */
}
@media (min-width: 1280px) {
/* desktop (xl) */
}
@media (min-width: 1536px) {
/* large desktop (2xl) */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment