SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Enthusiast apsoda's Avatar
    Join Date
    Oct 2003
    Location
    UK
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy Site not scaling down on mobile devices - very confused!

    Hello,

    To put it simply, I don't understand why this site: http://centulatorapp.com scales down and displays properly (at least, with everything proportioned and sitting in the right places) on an iPad or iPhone and this one : http://slikkrlabs.com/PersonalBrandsiPad does NOT.

    Can anyone tell me, please, where on earth I'm going wrong here?

    Thank you,

    Sarah

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,195
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    There are basically two ways to do this: either serve up different styles to different media with the help of @media queries in the CSS, or use some kind of server-side script to sniff out the device and serve up something different to different devices. I suspect the latter is happening for the centulator site, and neither is happening with the slik site.

  3. #3
    SitePoint Enthusiast apsoda's Avatar
    Join Date
    Oct 2003
    Location
    UK
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Ralph, thank you for your reply.

    The centulator site has no consideration for mobile devices whatsoever, it just scales by itself.

    There are stylesheets in the slikkrlabs one to accommodate portrait/landscape orientation but that's all. Even if I remove those and the meta viewport tag I still see no autoscaling when i look at that page on an iPhone. In fact, I had to do a lot of tweaking after throwing down a very basic layout, thinking it would *jiust work* because the damned thing was spilling outside the viewable area on iPad as well!

  4. #4
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,195
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    Did you create the centulator site?

  5. #5
    SitePoint Enthusiast apsoda's Avatar
    Join Date
    Oct 2003
    Location
    UK
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I did, yes.

  6. #6
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,195
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    O, I see, I didn't actually test this on a small device first. The centulator site is contained within a fixed-width, centered box that keeps everything in one place, whereas the other site isn't so contained, with content floating all over the place.


Bookmarks

Posting Permissions

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