/* 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) {}
@media only screen and (max-width: 535px), screen and (max-height:550px ) {
}
/*
# 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;
}
}
Code Example |
---|
Css :: curved lines css |
Css :: css div went over top menu |
Css :: css orange color |
Css :: responsive flexbox in css |
Css :: ion-select background color |
Css :: css transform border radius |
Css :: center div scss |
Css :: how to add text stroke in css |
Css :: bootstrap file upload |
Css :: css text properties |
Css :: css how to make a pre tag to break line |
Css :: border radius 4 values |
Css :: vertical line between two divs |
Css :: orientation css max and min width media query |
Css :: how to style submit button css |
Css :: video camera icon font awesome |
Css :: how to center a html header |
Css :: hidden vs visible |
Css :: css button border |
Css :: reset specific css |
Css :: css after not working |
Css :: hover border bottom css fixed |
Css :: Media Query smartphone only |
Css :: box shadow css |
Css :: grid template columns |
Css :: Resetting Default Table Styles |
Css :: how to use purgecss with webpack mix laravel |
Css :: carbon today date with 12 00 am |
Css :: add css to express app |
Css :: css not |