@media only screen and (max-width: 480px) and (min-width: 320px) {
/* mobile-devices */
}
@media only screen and (max-width: 768px) and (min-width: 481px) {
/* iPads, Tablets */
}
@media only screen and (max-width: 1024px) and (min-width: 769px) {
/* small screens, laptops */
}
@media only screen and (min-width: 1024px) {
/* Desktops, large screens */
}
@media only screen and (max-width: 399px) {...}
@media only screen and (min-width: 400px) and (max-width: 600px) {...}
@media only screen and (min-width: 601px) {...}
@media only screen and (max-width: 600px) and (min-width: 400px) {...}
@media only screen and (max-width: 480px) and (min-width: 320px) {
/* mobile-devices */
.width {
background: var(--clr-grey);
}
}
@media only screen and (max-width: 768px) and (min-width: 481px) {
/* iPads, Tablets */
.width {
background: var(--clr-pink);
}
}
@media only screen and (max-width: 1024px) and (min-width: 769px) {
/* small screens, laptops */
.width {
background: var(--clr-yellow);
}
}
@media only screen and (min-width: 1024px) {
/* Desktops, large screens */
.width {
background: var(--clr-yellow);
}
}
Code Example |
---|
Css :: counter-reset ol css |
Css :: hide input border on focus |
Css :: How to remove horizontal scrollbar and yet allow vertical |
Css :: awesome font google icon colored css |
Css :: comentarios en css |
Css :: bootstrap word-wrap: break-word; |
Css :: css units |
Css :: change style of ordered list numbers css |
Css :: text in circle css |
Css :: html watermark background |
Css :: style image so it crops |
Css :: styles only for IE |
Css :: vue v-cloak not working |
Css :: scss for loop nth child |
Css :: css border radius top |
Css :: flex align top css |
Css :: overflow scrollbar with variable height |
Css :: bootstrap Aligning images |
Css :: kerning css |
Css :: css lighten function |
Css :: line in css div |
Css :: ie11 flex 1 |
Css :: css after not working |
Css :: div overlfow scroll |
Css :: css styling images |
Css :: css space between child elements |
Css :: mettre image in the background |
Css :: css transform origin |
Css :: glass css |
Css :: file upload no button |