CSS for mobile sometimes reverts back to original

Posted by Jessie on Stack Overflow See other posts from Stack Overflow or by Jessie
Published on 2011-02-23T15:21:10Z Indexed on 2011/02/23 15:25 UTC
Read the original article Hit count: 283

So most of the time my stylesheets appear properly. The standard/original one always works flawlessly, however it seems sometimes the mobile one is disregarded when looked at from a mobile device

I have them designated as follows:

<link runat="server" href="CustomStyleSheets/Menu.css" rel="stylesheet" type="text/css" />
<link href="CustomStyleSheets/mobile.css" rel="stylesheet" type="text/css" media="only screen and (max-device-width: 799px)" />

I'm using a Droid X to view the page, in portrait mode, so the device width shouldn't be exceeding the max-width specified above, but sometimes, randomly, it still reverts back to the original css page.

Any way to keep it from doing so?

© Stack Overflow or respective owner

Related posts about css

Related posts about mobile-web