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 8875051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T18:52:48+00:00 2026-06-14T18:52:48+00:00

I have an HTML element that is exactly 1000px wide and 850px high (it’s

  • 0

I have an HTML element that is exactly 1000px wide and 850px high (it’s actually an iFrame containing an HTML5 game on a canvas tag, but I’m hoping that won’t matter).

I want the element presented on a tablet so that the viewport scales to always show the whole element, and nothing more. So when the tablet is held in landscape mode, you would expect blank space either side; while in portrait mode there would be blank space below (and above?).

In testing on an iPad2, the portrait mode seems to work out of the box, with the viewport automatically putting the element at the top and zooming to show exactly the whole image; but in landscape mode it’s doing the same thing and cutting off the bottom.

I’ve tried all sorts of combinations of the viewport meta tag, e.g. <meta name="viewport" content="height=850"/>, but can’t seem to get it to work consistently.

A solution using jQuery to resize based on changes in the window size would be welcome.

  • 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-06-14T18:52:49+00:00Added an answer on June 14, 2026 at 6:52 pm

    The iPad viewport size is 1024 x 690 px in landscape mode and 768 x 946 px in portrait mode.

    if you set the initial-scale & maximum-scale property of the viewport meta tag to 0.768 it will fit exactely in portrait mode still won’t be cutoff in landscape mode.

    <meta name="viewport" content="width=device-width, initial-scale=0.768, maximum-scale=0.768">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this function that switches the HTML contents from one element on a
I have code that adds a pre-determined HTML snippet into a pre-determined <div> element
I have some JQuery that takes 2 strings of HTML. Each string contains exactly
I have several HTML elements (buttons) that fire the same JQuery AJAX request. When
I have a collection of HTML elements that is structured and hierarchical. When an
I have a string that contains HTML image elements that is stored in a
I have a very complicated site built on CSS3 that has html elements 3d-transformed,
I have n number of select elements in an html page that are used
I have HTML page with some HTML element with ID=logo . I need to
I have a html element (like select box input field) in a table. Now

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.