Top "Viewport" questions

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

JavaScript calculate with viewport width/height

I am trying to set a responsive point in my mobile Webview and did this: var w = window.innerWidth-40; var …

javascript css viewport
Make div the height of viewport

I am designing a website and I would like the top to be the height of the viewport like this …

html css height viewport
Change font size in Vuetify based on viewport?

I have a title: <v-card-text style="font-size:5em"> Some Heading Here </v-card-text> I would like to …

css vue.js viewport vuetify.js
Chrome remembers scroll position

I'm running into a problem that's actually a "feature" on Chrome. As most of you might know, Chrome remembers a …

javascript html google-chrome scroll viewport
Viewport meta tag for desktop browsers?

My client is asking me to reduce size of current website for desktop browsers by 30%. is there a css or …

browser viewport
Jest / Enzyme - How to test at different viewports?

I am trying to run a test on a component at a certain viewport width. I am doing the following, …

jestjs viewport enzyme
How to toggle class after 100vh scroll

How to make this function add the class after scrolling 100vh? Currently it adds the class after 850px. $("document").ready(…

javascript scroll height viewport
How to check if css value is supported by the browser?

Im not very skilled in javascript so please be bear with me. Safari 6 and below and older android mobile browsers …

javascript jquery css browser viewport
Why does vw include the scrollbar as part of the viewport?

I'm trying to build a website that has lots of boxes that are of equal width and height. For example, …

html css scrollbar viewport
Check if element is between 30% and 60% of the viewport

I am trying to change the color of <li> elements when they are between 30% and 60% of the viewport. …

javascript jquery html css viewport