/* Max-width */
@media only screen and (max-width: 600px) {...}
/* Min-width */
@media only screen and (min-width: 600px) {...}
/* Combining media query expressions */
@media only screen and (max-width: 600px) and (min-width: 400px) {...}
@media screen and (min-width: 200px) and (max-width: 640px) {
.bloc {
display:block;
clear:both;
}
}
@media (max-width: 989px) and (min-width: 768px) {}
/*
# ref: https://www.w3schools.com/css/css3_mediaqueries_ex.asp
- On screens that are 992px or less, set the background color to blue
- Smaller screens
*/
@media screen and (max-width: 400px) {
body {
background-color: blue;
}
}
/*
- On screens that are 992px or more, set the background color to red
- Larger screens
*/
@media screen and (min-width: 992px) {
body {
background-color: red;
}
}
/* What this query really means, is If [device width] is less than or equal to 600px, then do */
@media only screen and (max-width: 600px) {...}
/* What this query really means, is If [device width] is greater than or equal to 600px, then do */
@media only screen and (min-width: 600px) {...}
@media screen and (max-width: 992px) {
body {
background-color: blue;
}
}