I am trying to create a rule that includes / excludes based on both the maximum and pixel level of the device. For example, if I want the Kindle Fire @ 600px to be excluded, but the iPhone5 @ 640 (smaller real-world screen) should be running.
Does the following rule execute AND or OR? Assuming that this makes the OR rule, how do I create a rule that executes a function of type AND (should pass both the "2 pixels" and "maximum width 749px" values),
@media only screen and (min--moz-device-pixel-ratio: 2),
only screen and (-o-min-device-pixel-ratio: 2/1),
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (min-device-pixel-ratio: 2),
only screen and (max-width: 749px){
}
EDIT BELOW:
Well, that’s what I still have, I guess that commas are OR, and “and” are obviously AND. It's right? I am trying to make a more universal set of requests, focused not only on iPhones / iPads ...
@media
only screen and (max-device-width : 721px) and (orientation : portrait) and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (max-device-width : 721px) and (orientation : portrait) and (min-device-pixel-ratio: 1.5),
only screen and (max-width: 359px) {
/* All Portrait Phones */
}
@media
only screen and (min-device-width : 360px) and (max-device-width : 999px) and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (min-device-width : 360px) and (max-device-width : 999px) and (min-device-pixel-ratio: 1.5),
only screen and (max-width: 999px) {
/* Small tablets (assume vertical) and landscape phones */
}
/*note - Anything over 999 wide to render fully - desktop, landscape or large tablets */