October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk5 min

How to Fix a Website Screenshot That Has the Wrong Page Height

A wrong-height screenshot may be a capture-mode mismatch, nested scroll area, CSS constraint, or viewport-dependent layout. Here’s how to isolate and fix it.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

First decide what the screenshot should contain: the visible viewport, one scrollable element, or the full page. In Playwright, use fullPage: true for the full scrollable page. If the result is still too short or unexpectedly tall, check which element scrolls and whether CSS or responsive layout limits the content; full-page capture does not create content that the page has not rendered.

Choose the capture height you actually need

A viewport screenshot records the currently visible browser area. A full-page screenshot aims to capture the document’s scrollable page, while an element screenshot targets a particular component. These are different capture goals, not interchangeable height settings. Playwright documents its screenshot options, including fullPage: true, at Playwright: Screenshots.

As an Amazon Associate I earn from qualifying purchases.

  • If you want only what a visitor sees without scrolling, use a viewport screenshot.
  • If you want the whole document, use full-page capture.
  • If the content lives inside a scrolling panel, capture that element or otherwise target its actual scroll container; document-level full-page capture may not include all of the panel’s contents.

Find what is determining the page height

Check the actual scroll root

Scroll the page and observe where the scrollbar and content move. If the document moves, the page itself is scrolling. If a panel moves while the surrounding page remains still, that panel is a nested scroll container. A screenshot of the document may show the panel’s visible portion rather than all of its internal content. Use element capture when available, or a method that captures the relevant scroll container.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Inspect CSS height rules

Inspect computed styles for html, body, the main wrapper, and any scrolling panel. Fixed heights and viewport-relative rules such as height: 100vh can constrain where content is rendered. A Playwright issue response explains that capture does not change page layout and describes a 100vh constraint as one cause of content not appearing below the viewport: Playwright issue #28027.

#1 Best Overall
Philips 24 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 241V8LB | 1920×1080 LED Monitor, 4ms GtG, Adaptive Sync, HDMI 1.4, Tilt Adjust, Low Blue Light, 4yr Advance Replacement Warranty
  • CRISP CLARITY: This 23.8″ Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
  • INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
  • THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors
  • WORK SEAMLESSLY: This sleek monitor is virtually bezel-free on three sides, so the screen looks even bigger for the viewer. This minimalistic design also allows for seamless multi-monitor setups that enhance your workflow and boost productivity
  • A BETTER READING EXPERIENCE: For busy office workers, EasyRead mode provides a more paper-like experience for when viewing lengthy documents

Change the site’s CSS only if the constraint is unintended. A content-driven height or min-height may be appropriate for a region that should grow with its contents, but the right fix depends on the page’s design and scroll behavior.

Test whether the layout depends on viewport size

As a diagnostic, temporarily use a taller viewport and compare the capture. Playwright’s page.setViewportSize() changes the page viewport; its documentation recommends setting viewport dimensions before navigation when a site responds to them: Playwright: page.setViewportSize(). In the cited issue, a maintainer suggested a test viewport of 1280 × 3000. That was an example for diagnosis, not a universal recommended size.

Rank #2
Philips 22 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 221V8LB
  • CRISP CLARITY: This 22 inch class (21.5″ viewable) Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
  • 100HZ FAST REFRESH RATE: 100Hz brings your favorite movies and video games to life. Stream, binge, and play effortlessly
  • SMOOTH ACTION WITH ADAPTIVE-SYNC: Adaptive-Sync technology ensures fluid action sequences and rapid response time. Every frame will be rendered smoothly with crystal clarity and without stutter
  • INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
  • THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors

If the taller viewport changes the screenshot height or reveals content, viewport-dependent layout may be involved. Responsive breakpoints can also rearrange or resize content when the viewport changes, so restore the intended dimensions and verify the final layout there.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Fix the capture in Playwright

Set the intended viewport before navigating, then select the right capture mode. This example captures the full scrollable document:

Rank #3
Sale
Dell 24 Monitor - SE2426H - 23.8-inch FHD (1920x1080) 144Hz 1ms Display, in-Plane Switching (IPS) Technology, AMD FreeSync™, TÜV 3-Star 2X HDMI, Tilt
  • Clear visuals. Fluid motion: A 144Hz refresh rate and 1ms MPRT deliver smooth, tear‑free motion across work, gaming, and streaming for clearer, more fluid viewing.
  • Eye comfort: TÜV Rheinland 3‑star* certification reduces harmful blue light while preserving stunning color quality without compromise. *TÜV Rheinland 3-star eye comfort certification.
  • Wide viewing angle: Get consistent views across a wide 178° /178° viewing angle.
  • In-Plane Switching (IPS): See excellent color accuracy and consistency across wide viewing angles with In-plane Switching (IPS) technology.
  • Ultra-thin bezels: Maximize your viewing experience with thin bezels.
import { chromium } from 'playwright';

const browser = await chromium.launch();
const page = await browser.newPage({ viewport: { width: 1280, height: 800 } });
await page.goto('https://example.com', { waitUntil: 'networkidle' });
await page.screenshot({ path: 'full-page.png', fullPage: true });
await browser.close();

Replace the example URL and dimensions with your target page and intended viewport. For a viewport-only image, omit fullPage: true. For a specific element, Playwright supports taking a screenshot from a locator:

await page.locator('.target-panel').screenshot({ path: 'panel.png' });

Choose a selector that identifies the element you want. An element screenshot is not a substitute for full-document capture if your goal is the complete page.

Rank #4
Sale
Samsung 27" Essential S3 (S36GD) Series FHD 1800R Curved Computer Monitor | 100Hz, Game Mode, Advanced Eye Comfort, HDMI and D-sub Ports (LS27D366GANXZA)
  • CURVED FOR ENHANCED ENGAGEMENT: An immersive viewing experience with a curved monitor that wraps more closely around your field of vision; It creates a wider view, enhancing depth perception and minimizing peripheral distraction
  • SMOOTH PERFORMANCE FOR SEAMLESS CONTENT: Stay in the action when playing games, watching videos, or working on creative projects; The 100Hz refresh rate reduces lag and motion blur so you don't miss a thing in fast-paced moments¹
  • MORE GAMING POWER: Gain the edge with optimizable game settings; Color and image contrast can be adjusted to see scenes more vividly and spot enemies hiding in the dark; Game Mode adjusts any game to fill the screen so you can view every detail²
  • KEEP IT EASY ON THE EYES: Care for your eyes and stay comfortable, even during long sessions; Advanced eye comfort technology certified by TÜV reduces eye strain by minimizing blue light and reducing irritating screen flicker²
  • INCREASED VERSATILITY: Connect to more; Plug devices straight into your monitor for increased flexibility, making your computing environment even more convenient

Compare captures without changing several variables at once

  1. Record the intended target: viewport, document, or element.
  2. Keep the viewport width and height, browser engine and version, page state, and capture mode fixed.
  3. Compare the image height with the document or element height you intended to capture.
  4. Change one variable at a time—such as capture mode, scroll root, CSS constraint, or viewport—and capture again.
  5. Once the cause is isolated, restore the desired viewport and confirm the page still behaves correctly there.

This makes it easier to distinguish a capture-option mismatch from a page-layout issue. Do not assume that a taller viewport is the production fix; it is a test that may change responsive behavior.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Troubleshoot common wrong-height results

Symptom Likely cause What to check or change
The image stops at the visible screen even though you expected the whole page. Viewport capture was used instead of full-page capture. In Playwright, set fullPage: true; in another tool, select its equivalent full-page mode.
The document capture includes only part of a long panel. The panel, rather than the document, is the scroll container. Inspect which element scrolls; target the panel with element capture or a method that captures the actual scroll container.
The page appears to end at roughly one viewport tall. A fixed or viewport-relative height may constrain a wrapper or scroll region. Inspect computed heights on html, body, the wrapper, and the scrolling element. Check whether a rule such as height: 100vh is intentional.
A taller viewport reveals more content or changes the output height. The layout may depend on viewport dimensions. Compare at the intended dimensions and inspect responsive rules; do not treat the diagnostic viewport as a universal fix.
The mismatch appears only with one browser engine or version. Rendering or capture behavior may differ by browser and version. After checking layout and options, reproduce with current versions using the same page, viewport, state, and capture settings. A 2020 report about Chromium and vh/vw units is historical and does not establish a current general Chromium defect: Playwright issue #6342.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

ScreenshotNeo can capture a URL with one GET request. Its cleanup steps can accept cookie or consent banners and remove known consent platforms, newsletter popups, and chat widgets before the shot; each step can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and the response identifies the page verdict and billing status in headers. It also provides an MCP server with screenshot, page-info, and PDF tools for AI agents.

For a full-page capture, use the full_page parameter described in the ScreenshotNeo API documentation:

Best Value
Sale
Sceptre New 22-Inch Gaming Monitor, FHD 1080p, Up to 144Hz, HDMI, DisplayPort, Built-in Speakers, Machine Black (E225W-FW144 Series, 2026)
  • 【INTEGRATED SPEAKERS】Whether you're at work or in the midst of an intense gaming session, our built-in speakers provide rich and seamless audio, all while keeping your desk clutter-free.
  • 【EASY ON THE EYES】 Protect your eyes and enhance your comfort with Blue-Light Shift technology. This feature reduces harmful blue light emissions from your screen, helping to alleviate eye strain during long hours of use and promoting healthier viewing habits.
  • 【WIDEN YOUR PERSPECTIVE】Our sleek minimal bezel design ensures undivided attention. The nearly bezel-free display seamlessly connects in a dual monitor arrangement, delivering an unobstructed view that lets you focus on more at once, completely distraction-free.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -d full_page=true -o shot.webp

ScreenshotNeo’s free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000. See ScreenshotNeo and sign up for the free plan.

When an old browser report is relevant

A 2020 Playwright issue described a Chromium full-page screenshot mismatch involving viewport-relative vh and vw units. It is a lead to test only if the problem reproduces under comparable conditions; it does not prove that current Chromium has a general full-page height bug. Compare engines and versions only after controlling the page, viewport, state, and capture options.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.