Top "Viewport" questions

A viewport is a rectangular viewing region in computer graphics, or a term used for optical components.

Why won't my viewport tag properly use device width (no zoom) on most mobile devices?

UPDATE 12/2020: Seeing as this post still gets activity, I must stress that there are no answers here that apply to …

mobile responsive-design viewport meta-tags device-width
How to set viewport only for iphone or ipad?

I have a website that needs to use 0.3 value for viewport on iphone, but 0.7 for ipad. Is there a way …

iphone viewport
Hide Safari address bar and footer

On my jQuery Mobile project I'm using the following code: <meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1"> …

jquery-mobile safari viewport
How to check if an element is in the view of the user with jquery

I have a very big draggable div in my window. This div has a smaller window. <div id="draggable-area" …

javascript jquery viewport
pass element ref to a method in angular2

I have to check if an element in a list is within the viewport or not.For this i'm using …

angular element viewport
In OpenGL, how can I adjust for the window being resized?

I am drawing several shapes (such as circles) that are keyed off of the window height & width. Since the …

opengl graphics viewport
How to show div when user reach bottom of the page?

When user scrolls to the bottom of the page I want to show some div, with jQuery of course. And …

jquery fadein viewport
Scale down Mobile Safari viewport width when iPad is in portrait orientation?-

I am working on a website which is designed to work best when viewed in landscape mode on iPad. Everything …

css ios ipad mobile-safari viewport
Using Viewport to create a mobile friendly version

I'm working on a site, but I want a mobile friendly version aswell. I'm a newbie to this. Someone suggested …

mobile mobile-website viewport mobile-webkit
gluOrtho2D and glViewport

I have an object defined in world coordinates, say a circle centered at (2,3) with radius 4. If I want the circle …

opengl viewport viewing