xxxxxxxxxx
@media screen and (min-width: 992px) {
.greater-than-large {
color: red;
}
}
@media screen and (max-width: 576px) {
.less-than-extra-small {
color: red;
}
}
@media screen and (min-width: 576px) and (max-width: 992px) {
.between-small-and-medium {
color: red;
}
}
xxxxxxxxxx
@media only screen and (max-width: 1200px){
/*Tablets [601px -> 1200px]*/
}
@media only screen and (max-width: 600px){
/*Big smartphones [426px -> 600px]*/
}
@media only screen and (max-width: 425px){
/*Small smartphones [325px -> 425px]*/
}
xxxxxxxxxx
@media only screen and (max-width: 600px) {
body {
background-color: lightblue;
}
}
xxxxxxxxxx
/* BOOSTRAP MEDIA BREAKPOINTS */
/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
.selector {
background-color:#f00;
}
}
/* Medium devices (tablets, 768px and up) The navbar toggle appears at this breakpoint */
@media (min-width: 768px) {}
/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {}
/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {}
xxxxxxxxxx
/*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) { }
xxxxxxxxxx
@media screen and (min-width: 320px) and (max-width: 786px) {
// custom CSS
}
xxxxxxxxxx
/* 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) {
}
xxxxxxxxxx
@media only screen and (min-device-width: 900px) and (max-device-width: 1200px) {
/* insert styles here */
}
xxxxxxxxxx
@media only screen and (max-width: 1200px) {
/*Tablets [1001px -> 1200px]*/
}
@media only screen and (max-width: 1000px) {
/*Big smartphones [601px -> 1000px]*/
}
@media only screen and (max-width: 600px) {
/*Big smartphones [426px -> 600px]*/
}
@media only screen and (max-width: 425px) {
/*Small smartphones [325px -> 425px]*/
}
xxxxxxxxxx
/* 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*/