Top "Viewport" questions

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

Disable Pinch Zoom on Mobile Web

I want to disable Pinch and Zoom on Mobile devices. What configuration should I add to the viewport ? Link : http://…

html css mobile-website viewport
What does the shrink-to-fit viewport meta attribute do?

I'm having trouble finding documentation for this. Is it Safari specific? There was a recent bug in iOS 9 (here), the …

html safari webkit ios9 viewport
Using jquery to get element's position relative to viewport

What's the proper way to get the position of an element on the page relative to the viewport (rather than …

javascript jquery position viewport offset
div with dynamic min-height based on browser window height

I have three div elements: one as a header, one as a footer, and a center content div. the div …

viewport css
disable viewport zooming iOS 10+ safari?

I've update my iPhone 6 plus to iOS 10 beta version and just found that in mobile safari, you can zoom any …

mobile-safari ios10 ios11 viewport ios12
scale fit mobile web content using viewport meta tag

I'm trying to figure out how to leverage the mobile viewport meta tag to automatically zoom the contents of a …

android iphone ios mobile viewport
What is initial scale, user-scalable, minimum-scale, maximum-scale attribute in meta tag?

I was going through the source code of a website and found this piece of code. <meta name="viewport" …

html attributes tags viewport meta-tags
How to increase the vertical split window size in Vim

:vsplit (short form: :vs) split the Vim viewport vertically. :30vs splits the viewport, making the new window 30 characters wide. Once …

vim window viewport
Can I change the viewport meta tag in mobile safari on the fly?

I have an AJAX app built for mobile Safari browser that needs to display different types of content. For some …

javascript mobile-safari viewport
Mobile overflow:scroll and overflow-scrolling: touch // prevent viewport "bounce"

On a mobile (Safari, webviews, wherever), overflow:scroll and overflow-scrolling: touch give a pretty smooth scroll, which is cool. But, …

mobile-safari overflow viewport