Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jan 2010
    Posts
    69
    Thanks
    12
    Thanked 0 Times in 0 Posts

    css for iphone not getting used in safari

    I am having trouble trying to work out why on an iphone my css file never gets used.

    when a user arrives at my site with a screen size <= 1024 i apply a different style sheet using this function - http://www.kelvinluck.com/2006/05/sw...s-with-jquery/. i know this isnt a way of doing it for an iphone as you use user.agent but i am doing it for smaller screens at the same time.

    Code:
    <link href="index.css" rel="stylesheet" title="screen" type="text/css" media="screen" />
            <link href="css/mobile.css" title="mobile" rel="alternate stylesheet" type="text/css" />
    that is how i order my stylesheets in my html. on opera on the iphone the css works fine but its just safari. on android the site works fine.

    any help would be really grateful

    thanks in advance

  • #2
    New to the CF scene
    Join Date
    Apr 2012
    Location
    http://forum.shaarpmind.com/
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    css for iphone not getting used in safari
    I am having trouble trying to work out why on an iphone my css file never gets used.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •