Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS media query css rule for a particular width size Reply To: media query css rule for a particular width size

#203089
theceoforlife
Participant

@media screen and (min-device-width: 50px) and (max-device-width: 319px) and (orientation : portrait) {

body {
background: black;
}
}
@media screen and (min-device-width: 320px) and (max-device-width: 359px) and (orientation : portrait) {

body {
background: green;
}

}

this is the code Thank you Mr Paulie_D