close-sidepanel close-sidepanel
Fontfabric™ Logo
Fontfabric™ -

Viewport

In responsive design, viewport refers to the visible dimensions of the browser window or digital surface where content renders, excluding surrounding interface elements like browser tabs, navigation bars, and status displays.

Two frames side by side holding identical text in blue Colus — “THE FRAME THE READER LOOKS THROUGH” over a grey paragraph explaining that only the width of the frame has changed. The wide frame is outlined in blue and the text fits; the narrow frame is outlined in pink and the same words wrap over far more lines and spill past the bottom edge.

Within responsive layout creation, the term viewport typically denotes the specific dimensions of the browser window or any dedicated digital surface where a website or application renders its content, deliberately omitting any surrounding application scaffolding such as browser tabs, navigation bars, and status displays.

Consequently, the precise horizontal and vertical boundaries of this viewing area hold far greater significance for designers than the total physical dimensions of the hardware screen. Relying on total screen size is often misleading because it accounts for the surrounding application interface and falsely assumes that users always interact with digital content in a maximized, full-screen configuration, which is rarely the reality on modern computing setups.

To address this, modern cascading style sheets incorporate specialized sizing metrics designed to let elements dynamically scale in direct proportion to the width and height of this viewing area, designated as vw and vh respectively. These specific units function alongside the stylistic control provided by media queries, which enable developers to execute entirely different presentation rules whenever the dimensions of the active display area fulfill predefined structural thresholds.

Enter your details to receive all trial fonts

We’ll send you a zipped file with all trial fonts, license agreement, and installation instructions.

Wanna learn more about typography?

Explore all terms
About the author
Iveta Stoyanova

Iveta is the Social Media & Community Manager at Fontfabric. With a background in Rhetoric & Speech Communication, she writes about the human side of typography, the inspiration behind new typefaces, choosing the right font for your project, and font licensing.