Media query rule
Apply on less than 576px wide
@media (max-width: 576px) {
body{
color:red;
}
}
@media (max-width: 390px) {
/**css**/
}
@media (max-width: 576px) {
/**css**/
}
@media (max-width: 768px) {
/**css**/
}
@media (max-width: 992px) {
/**css**/
}
@media (max-width: 1024px) {
/**css**/
}
@media (max-width: 1200px) {
/**css**/
}
@media (max-width: 1280px) {
/**css**/
}
Large 600px and up
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {...}
/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {...}
/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {...}
/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {...}