Android viewport?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Android viewport?

    Im a little bit confused on how to use viewport to make androids view as mobile pages view as mobile rather than a web page (having to scroll left/right zoom in etc)?

    Has anyone had any experience with this?

    iv currently set it to:
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

    but i dont know if this is right or not due to not owning a android device and not being able to get an internet connection on android emulator
    Last edited by something else; 17.03.12, 16:34.

    #2
    have a look at A tale of two viewports — part two might help



    Sent from my HTC One X using Tapatalk
    Last edited by amylee; 17.03.12, 17:18.

    Comment


      #3
      Thanks amylee :D

      looks like i was doing the right thing ..... would advise everyone to add that code to there mobile sites

      Comment


        #4
        should also have a look at using mobile jquery looks awesome on mobile devices
        i'm currently trying to update my lava script into using mobile jquery and it's pretty dam hard tbh lol

        got preview of one page im currently using to test it out on MOBILE JQUERY TEST PAGE
        pretty bog standard but looks ok for me still learning how to use it :/
        Last edited by amylee; 17.03.12, 18:27.

        Comment


          #5
          yeah jquery is a headache .... heres a nice demo for pages within a page: jQuery Mobile: Pages within Pages

          Comment


            #6
            Originally posted by something else View Post
            yeah jquery is a headache .... heres a nice demo for pages within a page: jQuery Mobile: Pages within Pages
            Try
            taken from twitter bootstrip
            Code:
               <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">

            Comment


              #7
              what about this
              How to fix viewport scaling with JQuery Mobile on Android HDPI devices - Stack Overflow

              Comment

              Working...
              X