Viewport

noun

say it: “VYOO-port” /ˈvjuˌpɔrt/

The part of the browser window where the page shows. The units vw and vh measure it: 1vw is 1% of its width and 1vh is 1% of its height.

What is the viewport?

The viewport is the visible area of the page in the browser window or phone screen. The vw and vh units are percentages of it.

.hero { height: 100vh; }   /* fills the screen */

In a sentence

  • “I made the game's start screen 100vh tall so it filled the whole viewport before any scrolling.”

Level: Apprentice · More CSS terms at this level

Updated