Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7596425
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:54:54+00:00 2026-05-30T21:54:54+00:00

Initially I used the meta tag: <meta name=viewport content=width=device-width, initial-scale=1.0/> On using this tag,

  • 0

Initially I used the meta tag:

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

On using this tag, on initial load, the page looked good in landscape mode, but when I change the orientation to Portrait and back to landscape mode, the page zoomed out.

Then I tried the following meta tag on my page:

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

Though the page fits in landscape mode, I do not see a scrollbar to view more content on the Portrait mode.

Do I need to use media queries to make the page fit in both landscape and portrait mode or Is there a meta tag which will help achieve that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T21:54:55+00:00Added an answer on May 30, 2026 at 9:54 pm

    I found a good solution to this:

    Meta Tag:

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

    JavaScript with jQuery:

    var mobile_timer = false;
    if(navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i)) {
    $('#viewport').attr('content','width=device-width,minimum-scale=1.0,maximum-     scale=1.0,initial-scale=1.0');
    $(window).bind('gesturestart',function () {
        clearTimeout(mobile_timer);
        $('#viewport').attr('content','width=device-width,minimum-scale=1.0,maximum-scale=10.0');
    }).bind('touchend',function () {
        clearTimeout(mobile_timer);
        mobile_timer = setTimeout(function () {
            $('#viewport').attr('content','width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0');
        },1000);
    });
    }
    

    The script basically disallows zooming on the iPhone unless gestures are detected, just refeence it in your html and you should be good to go 😉
    Source: http://www.ternstyle.us/blog/reset-iphone-zoom-on-orientation-change-to-landscape

    I also set this media query for iPhones

    @media screen and (max-device-width: 480px)
    {
        html
        {
            -webkit-text-size-adjust: none;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

<!DOCTYPE html> <html> <head> <meta name=viewport content=width=device-width, initial-scale=1> <link rel=stylesheet href=http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css /> <script src=http://code.jquery.com/jquery-1.6.4.min.js></script>
I have a button and a div in my html page. Initially I used
I'm working on a project that initially used Subversion, but the remote repository was
I recently made my own Javascript library and I initially used the following pattern:
I recently wrote a program that used a simple producer/consumer pattern. It initially had
So, a long long time ago I used to program procedurally initially with Basic
Initially I thought this was going to work, but now I understand it won't
Initially i was planning to use master page for every page in my application.
I initially designed my system following the s# architecture example outlined in this codeproject
The issue I have a <div> on a page which is initially hidden with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.