/*Any Mobile Device*/
@media only screen and (max-width: 767px) { }
/*Tablets Device*/
@media only screen and (max-width: 991px) { }
/*ipad Pro Device*/
@media only screen and (max-width: 1024px) { }
/*large Device*/
@media only screen and (max-width: 1200px) { }
/* Smartphones and larger (mobile-first) */
/* Tablet portrait and larger */
@media only screen and (min-width: 600px) {}
/* Tablet landscape and larger */
@media only screen and (min-width: 900px) {}
/* Desktop and larger */
@media only screen and (min-width: 1200px) {}
/* Big desktop (4k) */
@media only screen and (min-width: 2500px) {}
// start Device responsive
//mobile sm 320
@media screen and (max-width:374px){
}
//mobile md 375
@media screen and (min-width:375px) and (max-width:424px){
}
//mobile lg 425
@media screen and (min-width:425px) and (max-width:767px){
}
//tablet 768
@media screen and (min-width:768px) and (max-width:1023px){
}
//Laptop 1024
@media screen and (min-width:1024px) and (max-width:1439px){
}
//Laptop L 1440
@media screen and (min-width:1440px) and (max-width:2559px){
}
//4K 2560
@media screen and (min-width:2560px){
}
//end Device responsive
/* Custom, iPhone Retina */
@media only screen and (min-width : 320px) {
}
/* Extra Small Devices, Phones */
@media only screen and (min-width : 480px) {
}
/* Small Devices, Tablets */
@media only screen and (min-width : 768px) {
}
/* Medium Devices, Desktops */
@media only screen and (min-width : 992px) {
}
/* Large Devices, Wide Screens */
@media only screen and (min-width : 1200px) {
}
/* So me write a media query like this */
@media screen and (min-width:746px){
/* here we will add the stles we want
for the screen with min -width of 746 px*/
}
/* we can also use something like*/
@media print and (min-width:1024px){
}
/* Here print is for what we will see if we print whats on the screen*/
/* ----------- HTC One ----------- */
/* Portrait and Landscape */
@media screen
and (device-width: 360px)
and (device-height: 640px)
and (-webkit-device-pixel-ratio: 3) {
}
/* Portrait */
@media screen
and (device-width: 360px)
and (device-height: 640px)
and (-webkit-device-pixel-ratio: 3)
and (orientation: portrait) {
}
/* Landscape */
@media screen
and (device-width: 360px)
and (device-height: 640px)
and (-webkit-device-pixel-ratio: 3)
and (orientation: landscape) {
}
<!-- Don't forget to include this tag -->
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<!-- in your html head for media queries to work on all devices -->