Recently, I came across an issue with a stylesheet designed for mobile devices that contains the following code:
/* Smartphones (portrait) ----------- */
@media only screen
and (max-width : 320px) {
/* Styles */
}
Surprisingly, this code failed to work on my iPhone 3GS. Strangely enough, it worked perfectly fine when I resized the browser window.
Curiously, by changing the value of "max-width" to a larger number like 1000px, the stylesheet worked as intended. Why is this happening?