Top "Viewport" questions

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

Scaling div width depending on height

I want to have a site that is 100% of the height of the browser at all times, with the width …

css viewport viewport-units
Precise OpacityMask

Suppose I need to set an opacity mask on a WPF control that highlights a portion of it in precise …

wpf layout opacity mask viewport
Viewport units, keeping aspect ratio?

So I've just discovered viewport units, and I really want to use them. First challenge: My element has a "base …

css viewport viewport-units
take screenshot in chrome device emulator mode

I am using a laptop computer with a max resolution on 1366px. I want to take a screenshot of how …

google-chrome width device viewport
JS - get percentage of an element in Viewport

I want to get the percentage of an element (div) when its in viewport. when the element enter the viewport …

javascript jquery scroll viewport offset
Background cover image on 100vh - screen differences

So i try to set image on cover with 100vh - but i have very specific situation. On my image …

css background background-image viewport viewport-units
Lighthouse audit says content not sized correctly for viewport, despite body width being 100%

I have set the body css of my html page to 100% and with no margins or padding, but it still …

javascript html css viewport lighthouse
WKWebView viewport shrink-to-fit not working on iOS 9.3

In iOS 9.2, a WKWebView rendering HTML with fixed-width tables bigger than the device width could be told to shrink the …

viewport wkwebview ios9.2 ios9.3
jquery waypoints: how to bind multiple waypoints on the same object

jquery waypoints fires a callback, when a object appears into viewport with scrolling. This works fine for basic implementation. Now …

jquery events viewport jquery-waypoints
Zoom issue in iPhone for iOS 10

Is there any viewport meta tag available for iOS 10 ? I am facing zoom issue on my iPhone. I am using &…

iphone zooming viewport meta ios10