0

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 1

1

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)"/> 
Sign up to request clarification or add additional context in comments.

1 Comment

oh, I forgot to mention I used a jquery command: $.mobile.media("screen and (min-width: 800px)")

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.