Webpage starts zoomed in on mobile devices












28















I'm using this code on my webpage



<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">


I would think the initial scale would make sure the webpage was zoomed out, but it doesn't. Any ideas?



I've tried this:



<meta name="viewport" content="width=device-width, initial-scale=1.0"/>


But, I need the width to be set to 1000px or it doesn't look correct.



Answer:



<meta name="viewport" content="width=1000; user-scalable=0;" />









share|improve this question

























  • this solution will solve alignment issues too on smart phones! just wanted to post my findings. stackoverflow.com/questions/10402081/…

    – user9008566
    Jan 9 at 13:50
















28















I'm using this code on my webpage



<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">


I would think the initial scale would make sure the webpage was zoomed out, but it doesn't. Any ideas?



I've tried this:



<meta name="viewport" content="width=device-width, initial-scale=1.0"/>


But, I need the width to be set to 1000px or it doesn't look correct.



Answer:



<meta name="viewport" content="width=1000; user-scalable=0;" />









share|improve this question

























  • this solution will solve alignment issues too on smart phones! just wanted to post my findings. stackoverflow.com/questions/10402081/…

    – user9008566
    Jan 9 at 13:50














28












28








28


5






I'm using this code on my webpage



<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">


I would think the initial scale would make sure the webpage was zoomed out, but it doesn't. Any ideas?



I've tried this:



<meta name="viewport" content="width=device-width, initial-scale=1.0"/>


But, I need the width to be set to 1000px or it doesn't look correct.



Answer:



<meta name="viewport" content="width=1000; user-scalable=0;" />









share|improve this question
















I'm using this code on my webpage



<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">


I would think the initial scale would make sure the webpage was zoomed out, but it doesn't. Any ideas?



I've tried this:



<meta name="viewport" content="width=device-width, initial-scale=1.0"/>


But, I need the width to be set to 1000px or it doesn't look correct.



Answer:



<meta name="viewport" content="width=1000; user-scalable=0;" />






html viewport






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 15 '13 at 18:28







EGHDK

















asked Jan 11 '13 at 5:44









EGHDKEGHDK

7,80938106178




7,80938106178













  • this solution will solve alignment issues too on smart phones! just wanted to post my findings. stackoverflow.com/questions/10402081/…

    – user9008566
    Jan 9 at 13:50



















  • this solution will solve alignment issues too on smart phones! just wanted to post my findings. stackoverflow.com/questions/10402081/…

    – user9008566
    Jan 9 at 13:50

















this solution will solve alignment issues too on smart phones! just wanted to post my findings. stackoverflow.com/questions/10402081/…

– user9008566
Jan 9 at 13:50





this solution will solve alignment issues too on smart phones! just wanted to post my findings. stackoverflow.com/questions/10402081/…

– user9008566
Jan 9 at 13:50












6 Answers
6






active

oldest

votes


















37





+50









initial-scale=1.0 tells the browser to set the zoom level to normal (i.e. not zoomed in or out). You only need width=1000:



<meta name="viewport" content="width=1000">





share|improve this answer



















  • 2





    Awesome. So simple, and thanks for the explanation. I updated my question to show my current code. I added in a user scalable option, so my users don't have the option to zoom in. Thanks!

    – EGHDK
    Jan 15 '13 at 18:27



















6














Try this:



<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />


or



<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1" />





share|improve this answer
























  • Thanks for the user-scalable idea.

    – EGHDK
    Jan 15 '13 at 18:28



















3














I also though that view port was the problem but after testing it I figured viewport was not the problem.



The problem in my case was the CSS: fixed width, or width: 100% instead of width: auto. So if you find that viewport is not the problem - CSS would likely be your next guess.



Hope that helps!






share|improve this answer

































    1














    I tried playing with



    <meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">


    and it seems my site is indeed rendered 1000px wide at scale 1. However, since my phone's screen has no space for the site, the site continues outside the viewport resulting in the feeling that the site is zoomed in.



    Setting this value makes the site 1000px wide zoomed out:



     <meta name="viewport" content="width=1000">


    Is this your issue?



    On a side note, 1000px sounds a bit wide for a mobile website, but I assume this website is not originally made for mobile devices?






    share|improve this answer

































      0














      I've had a similar problem. Try this:



      <meta name="viewport" content="width=1000; initial-scale=1, maximum-scale=1, minimum-scale=1"/>


      I think it has to do with the minimum-scale, but I'm not very sure.






      share|improve this answer



















      • 1





        Hrm... now it won't resize at all, but it's still zoomed in.

        – EGHDK
        Jan 11 '13 at 6:18





















      0














      You can use this.



          <meta name="viewport" content="width=100%">





      share|improve this answer























        Your Answer






        StackExchange.ifUsing("editor", function () {
        StackExchange.using("externalEditor", function () {
        StackExchange.using("snippets", function () {
        StackExchange.snippets.init();
        });
        });
        }, "code-snippets");

        StackExchange.ready(function() {
        var channelOptions = {
        tags: "".split(" "),
        id: "1"
        };
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function() {
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled) {
        StackExchange.using("snippets", function() {
        createEditor();
        });
        }
        else {
        createEditor();
        }
        });

        function createEditor() {
        StackExchange.prepareEditor({
        heartbeatType: 'answer',
        autoActivateHeartbeat: false,
        convertImagesToLinks: true,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        bindNavPrevention: true,
        postfix: "",
        imageUploader: {
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        },
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        });


        }
        });














        draft saved

        draft discarded


















        StackExchange.ready(
        function () {
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f14272420%2fwebpage-starts-zoomed-in-on-mobile-devices%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        6 Answers
        6






        active

        oldest

        votes








        6 Answers
        6






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        37





        +50









        initial-scale=1.0 tells the browser to set the zoom level to normal (i.e. not zoomed in or out). You only need width=1000:



        <meta name="viewport" content="width=1000">





        share|improve this answer



















        • 2





          Awesome. So simple, and thanks for the explanation. I updated my question to show my current code. I added in a user scalable option, so my users don't have the option to zoom in. Thanks!

          – EGHDK
          Jan 15 '13 at 18:27
















        37





        +50









        initial-scale=1.0 tells the browser to set the zoom level to normal (i.e. not zoomed in or out). You only need width=1000:



        <meta name="viewport" content="width=1000">





        share|improve this answer



















        • 2





          Awesome. So simple, and thanks for the explanation. I updated my question to show my current code. I added in a user scalable option, so my users don't have the option to zoom in. Thanks!

          – EGHDK
          Jan 15 '13 at 18:27














        37





        +50







        37





        +50



        37




        +50





        initial-scale=1.0 tells the browser to set the zoom level to normal (i.e. not zoomed in or out). You only need width=1000:



        <meta name="viewport" content="width=1000">





        share|improve this answer













        initial-scale=1.0 tells the browser to set the zoom level to normal (i.e. not zoomed in or out). You only need width=1000:



        <meta name="viewport" content="width=1000">






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 14 '13 at 11:21









        Jeffery ToJeffery To

        10.9k11939




        10.9k11939








        • 2





          Awesome. So simple, and thanks for the explanation. I updated my question to show my current code. I added in a user scalable option, so my users don't have the option to zoom in. Thanks!

          – EGHDK
          Jan 15 '13 at 18:27














        • 2





          Awesome. So simple, and thanks for the explanation. I updated my question to show my current code. I added in a user scalable option, so my users don't have the option to zoom in. Thanks!

          – EGHDK
          Jan 15 '13 at 18:27








        2




        2





        Awesome. So simple, and thanks for the explanation. I updated my question to show my current code. I added in a user scalable option, so my users don't have the option to zoom in. Thanks!

        – EGHDK
        Jan 15 '13 at 18:27





        Awesome. So simple, and thanks for the explanation. I updated my question to show my current code. I added in a user scalable option, so my users don't have the option to zoom in. Thanks!

        – EGHDK
        Jan 15 '13 at 18:27













        6














        Try this:



        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />


        or



        <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1" />





        share|improve this answer
























        • Thanks for the user-scalable idea.

          – EGHDK
          Jan 15 '13 at 18:28
















        6














        Try this:



        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />


        or



        <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1" />





        share|improve this answer
























        • Thanks for the user-scalable idea.

          – EGHDK
          Jan 15 '13 at 18:28














        6












        6








        6







        Try this:



        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />


        or



        <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1" />





        share|improve this answer













        Try this:



        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />


        or



        <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1" />






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 14 '13 at 9:32







        user1976613




















        • Thanks for the user-scalable idea.

          – EGHDK
          Jan 15 '13 at 18:28



















        • Thanks for the user-scalable idea.

          – EGHDK
          Jan 15 '13 at 18:28

















        Thanks for the user-scalable idea.

        – EGHDK
        Jan 15 '13 at 18:28





        Thanks for the user-scalable idea.

        – EGHDK
        Jan 15 '13 at 18:28











        3














        I also though that view port was the problem but after testing it I figured viewport was not the problem.



        The problem in my case was the CSS: fixed width, or width: 100% instead of width: auto. So if you find that viewport is not the problem - CSS would likely be your next guess.



        Hope that helps!






        share|improve this answer






























          3














          I also though that view port was the problem but after testing it I figured viewport was not the problem.



          The problem in my case was the CSS: fixed width, or width: 100% instead of width: auto. So if you find that viewport is not the problem - CSS would likely be your next guess.



          Hope that helps!






          share|improve this answer




























            3












            3








            3







            I also though that view port was the problem but after testing it I figured viewport was not the problem.



            The problem in my case was the CSS: fixed width, or width: 100% instead of width: auto. So if you find that viewport is not the problem - CSS would likely be your next guess.



            Hope that helps!






            share|improve this answer















            I also though that view port was the problem but after testing it I figured viewport was not the problem.



            The problem in my case was the CSS: fixed width, or width: 100% instead of width: auto. So if you find that viewport is not the problem - CSS would likely be your next guess.



            Hope that helps!







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Nov 20 '18 at 22:33

























            answered Jan 2 '18 at 21:00









            Alexey ShevelyovAlexey Shevelyov

            467818




            467818























                1














                I tried playing with



                <meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">


                and it seems my site is indeed rendered 1000px wide at scale 1. However, since my phone's screen has no space for the site, the site continues outside the viewport resulting in the feeling that the site is zoomed in.



                Setting this value makes the site 1000px wide zoomed out:



                 <meta name="viewport" content="width=1000">


                Is this your issue?



                On a side note, 1000px sounds a bit wide for a mobile website, but I assume this website is not originally made for mobile devices?






                share|improve this answer






























                  1














                  I tried playing with



                  <meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">


                  and it seems my site is indeed rendered 1000px wide at scale 1. However, since my phone's screen has no space for the site, the site continues outside the viewport resulting in the feeling that the site is zoomed in.



                  Setting this value makes the site 1000px wide zoomed out:



                   <meta name="viewport" content="width=1000">


                  Is this your issue?



                  On a side note, 1000px sounds a bit wide for a mobile website, but I assume this website is not originally made for mobile devices?






                  share|improve this answer




























                    1












                    1








                    1







                    I tried playing with



                    <meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">


                    and it seems my site is indeed rendered 1000px wide at scale 1. However, since my phone's screen has no space for the site, the site continues outside the viewport resulting in the feeling that the site is zoomed in.



                    Setting this value makes the site 1000px wide zoomed out:



                     <meta name="viewport" content="width=1000">


                    Is this your issue?



                    On a side note, 1000px sounds a bit wide for a mobile website, but I assume this website is not originally made for mobile devices?






                    share|improve this answer















                    I tried playing with



                    <meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">


                    and it seems my site is indeed rendered 1000px wide at scale 1. However, since my phone's screen has no space for the site, the site continues outside the viewport resulting in the feeling that the site is zoomed in.



                    Setting this value makes the site 1000px wide zoomed out:



                     <meta name="viewport" content="width=1000">


                    Is this your issue?



                    On a side note, 1000px sounds a bit wide for a mobile website, but I assume this website is not originally made for mobile devices?







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Jan 15 '13 at 14:59

























                    answered Jan 15 '13 at 14:47









                    Robert FrickeRobert Fricke

                    3,2651530




                    3,2651530























                        0














                        I've had a similar problem. Try this:



                        <meta name="viewport" content="width=1000; initial-scale=1, maximum-scale=1, minimum-scale=1"/>


                        I think it has to do with the minimum-scale, but I'm not very sure.






                        share|improve this answer



















                        • 1





                          Hrm... now it won't resize at all, but it's still zoomed in.

                          – EGHDK
                          Jan 11 '13 at 6:18


















                        0














                        I've had a similar problem. Try this:



                        <meta name="viewport" content="width=1000; initial-scale=1, maximum-scale=1, minimum-scale=1"/>


                        I think it has to do with the minimum-scale, but I'm not very sure.






                        share|improve this answer



















                        • 1





                          Hrm... now it won't resize at all, but it's still zoomed in.

                          – EGHDK
                          Jan 11 '13 at 6:18
















                        0












                        0








                        0







                        I've had a similar problem. Try this:



                        <meta name="viewport" content="width=1000; initial-scale=1, maximum-scale=1, minimum-scale=1"/>


                        I think it has to do with the minimum-scale, but I'm not very sure.






                        share|improve this answer













                        I've had a similar problem. Try this:



                        <meta name="viewport" content="width=1000; initial-scale=1, maximum-scale=1, minimum-scale=1"/>


                        I think it has to do with the minimum-scale, but I'm not very sure.







                        share|improve this answer












                        share|improve this answer



                        share|improve this answer










                        answered Jan 11 '13 at 6:16









                        nevi_menevi_me

                        1,75111327




                        1,75111327








                        • 1





                          Hrm... now it won't resize at all, but it's still zoomed in.

                          – EGHDK
                          Jan 11 '13 at 6:18
















                        • 1





                          Hrm... now it won't resize at all, but it's still zoomed in.

                          – EGHDK
                          Jan 11 '13 at 6:18










                        1




                        1





                        Hrm... now it won't resize at all, but it's still zoomed in.

                        – EGHDK
                        Jan 11 '13 at 6:18







                        Hrm... now it won't resize at all, but it's still zoomed in.

                        – EGHDK
                        Jan 11 '13 at 6:18













                        0














                        You can use this.



                            <meta name="viewport" content="width=100%">





                        share|improve this answer




























                          0














                          You can use this.



                              <meta name="viewport" content="width=100%">





                          share|improve this answer


























                            0












                            0








                            0







                            You can use this.



                                <meta name="viewport" content="width=100%">





                            share|improve this answer













                            You can use this.



                                <meta name="viewport" content="width=100%">






                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Jan 27 at 19:07









                            SundarSundar

                            6610




                            6610






























                                draft saved

                                draft discarded




















































                                Thanks for contributing an answer to Stack Overflow!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid



                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.


                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f14272420%2fwebpage-starts-zoomed-in-on-mobile-devices%23new-answer', 'question_page');
                                }
                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

                                How to send String Array data to Server using php in android

                                Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

                                Is anime1.com a legal site for watching anime?