Promptles
Frontend & Responsive Design

Viewport

beginner

Definition

The slice of a webpage you can actually see in the browser window. On a phone, the viewport is small; on a wide monitor, it's large. Designers think carefully about the viewport because the same page has to look right at every possible size.

In the wild

Open a website on your phone, then on a desktop. The page knows your phone has a small viewport and gives you a single column with big tap targets. The same page on the desktop's larger viewport spreads out into multiple columns and uses smaller, mouse-sized buttons.

More from Frontend & Responsive Design