Top "Viewport" questions

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

Webpage starts zoomed in on mobile devices

I'm using this code on my webpage <meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0"> I would think the …

html viewport
How to enable pinch zoom on website for mobile devices?

I am trying to enable pinch zoom on my website. I've tried to enable zooming by setting meta viewport like …

html viewport mobile-devices
What is viewport in HTML.

What is viewport in HTML? Could you give some examples on how to access the viewport details?

javascript html viewport
what is the ipad mini browser width/height?

I did a bunch of googling but I can't seem to find the (non-retina) html width/height for the ipad …

ipad viewport ipad-mini
Android viewport setting "user-scalable=no" breaks width / zoom level of viewport

I am working on a web app which has a width of 640px. In the document head I set <…

android iphone mobile browser viewport
What is today's most popular screen resolution?

Is there a place that displays statistics in such a manner that I can rely on? e.g. Google/Microsoft …

screen viewport resolution screen-resolution
What does <meta name="viewport" content="width=device-width"> do in landscape mode on iOS?

I'm trying to understand the scaling attributes on iOS. According to Apple's Developer Docs, declaring <meta name="viewport" content="…

html ios webkit viewport
Set DIV height dynamically based on viewport height

I'm trying to set a div's height to 30% of the viewport height and I would very much like to scale …

jquery height viewport
How to set max viewport in Puppeteer?

When I run a new page, I must specify size of the viewport using the setViewport function: await page.setViewport({ …

javascript node.js google-chrome-devtools viewport puppeteer
Full viewport height scaling div just css no js... Possible?

Ok, I'm trying to get a div to scale and the height is always the height of the viewport. I'm …

css height scaling viewport