I\'m currently using CSS media queries to target some small/medium screen devices like this:
@media screen and (min-device-width: 480px) {
...
}
@media screen
It cannot be done with plain CSS.
Have a look at LESS or SASS. They are designed to make working with CSS more dynamic and flexible.
Once you use them. You can't live without them.
In case you want to add a existing class selector to the body on certain resolutions.
.some-style { background-color:red; }
@media screen and (min-device-width: 480px) {
body {
@extend .some-style;
}
}