Last active
February 21, 2024 09:39
-
-
Save pedrobertao/f9f2276a3c9c54004279191f88c5c769 to your computer and use it in GitHub Desktop.
Standard media queries css tricks width height landscape portrait
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Small screens, laptops (landscape) ----------- */ | |
@media only screen | |
and (min-device-width : 769px) | |
and (max-device-width : 1024px) { | |
/* Styles */ | |
} | |
/* Desktops & large screens (landscape) ----------- */ | |
@media only screen | |
and (min-device-width : 1025px) | |
and (max-device-width : 1200px) { | |
/* Styles */ | |
} | |
/* Extra large screens (landscape) ----------- */ | |
@media only screen | |
and (min-device-width : 1201px) { | |
/* Styles */ | |
} | |
/* Smartphones (portrait and landscape) ----------- */ | |
@media only screen | |
and (min-device-width : 320px) | |
and (max-device-width : 480px) { | |
/* Styles */ | |
} | |
/* Smartphones (landscape) ----------- */ | |
@media only screen | |
and (min-width : 321px) { | |
/* Styles */ | |
} | |
/* Smartphones (portrait) ----------- */ | |
@media only screen | |
and (max-width : 320px) { | |
/* Styles */ | |
} | |
/* iPads (portrait and landscape) ----------- */ | |
@media only screen | |
and (min-device-width : 768px) | |
and (max-device-width : 1024px) { | |
/* Styles */ | |
} | |
/* iPads (landscape) ----------- */ | |
@media only screen | |
and (min-device-width : 768px) | |
and (max-device-width : 1024px) | |
and (orientation : landscape) { | |
/* Styles */ | |
} | |
/* Source: https://css-tricks.com/snippets/css/media-queries-for-standard-devices/ and others */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment