I'm facing a problem with CSS3 media queries while developing a mobile site. The code I've written works perfectly on the landscape mode of an iPhone 5, but it's not quite right on an iPhone 4 or earlier in landscape mode.
/* Default styling for portrait mode */
.test {width:100%;}
/* Adjustment for landscape mode (works well on iPhone 5) - struggles on iPhone 4s and older models */
@media screen and (orientation: landscape) {
.test {width: 50%}
}
Now, I need to maintain the existing code but also target ONLY iPhones 4s and earlier in LANDSCAPE mode, along with other devices of similar sizes.
Is it possible to add another media query to address the smaller screens while keeping the styles mentioned above?