Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Mobile (max-device-width) Pulling in mobile styles for desktop screen resolutions.

  • This topic is empty.
Viewing 2 posts - 16 through 17 (of 17 total)
  • Author
    Posts
  • #117789
    svoltmer
    Participant

    I have it set up now for portrait and landscape on the index page, but I have a problem. The dropdown javascript is still being called for the landscape version of the tablet.css, so the navigation dissapears when the user clicks on any of the links. How can I make sure that the function is not called for the landscape version of the tablet.css?

    I have the script load via an “if” statement in the header testing “userAgent” for all mobile devices with “document.write” to insert the script tag into the header.

    #117810
    svoltmer
    Participant

    Ok, I went back and am loading the mobile.css allways, but It still is applied to all monitor resolutions as well due to the size of (max-device-width:1280px), which is needed for the samsung galaxy note 2. How do I restrict the mobile styles to the mobile devices if they are so large?

Viewing 2 posts - 16 through 17 (of 17 total)
  • The forum ‘CSS’ is closed to new topics and replies.