I have a droid eris which has a HVGA screen (320x480). But the following jquery command $.mobile.media("screen and (min-width: 800px)") returns true. Can any one tell me what's wrong? Thanks.
1 Answer
It looks like you're confusing the syntax for media queries in a stylesheet, and in a <link> to a stylesheet. What you're got so far isn't syntactically valid in either context.
In a stylesheet:
@media screen and (min-width:800px)
In a link to a stylesheet:
<link rel="stylesheet" href="foo.css" media="screen and (min-width:800px)"/>
1 Comment
lcb
oh, I forgot to mention I used a jquery command:
$.mobile.media("screen and (min-width: 800px)")