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

Use @media print to tailor a page for printing, @page to set paper size and margins, and Chrome’s print preview to check the result before saving it as a PDF. Print styles change the page’s printed presentation, not its normal on-screen appearance.

1. Add print-specific CSS

For a small set of adjustments, put the rules in your existing stylesheet inside @media print. Replace the example selectors with ones that match your page:

@media print {
  .site-navigation,
  .cookie-banner,
  .share-controls {
    display: none;
  }

  main {
    max-width: none;
    margin: 0;
  }

  a {
    color: inherit;
  }
}

These rules apply to printed output, including a PDF made through Chrome. Print styles still follow normal CSS specificity and precedence: a more specific competing declaration can override a rule in the print block. If a style appears not to take effect, inspect the element’s matching rules and adjust the selector or declaration.

Use a separate print stylesheet when useful

If the print design is substantial, keep it in its own file and load it only for print:

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.
#1 Best Overall
Sale
Epson EcoTank ET-2800 Wireless Color All-in-One Supertank Printer - Black
  • INNOVATIVE CARTRIDGE-FREE PRINTING — No more dealing with lots of tiny ink cartridges; With this wireless document and photo printer each ink bottle set is equivalent to about 90 individual cartridges²
  • LESS FREQUENT INK REPLACEMENT — Replacement ink bottles don't have to be changed nearly as often as ink cartridges¹; When you choose this combination printer, scanner and copier you can print up to 4,500 pages black/7,500 color³
  • COLOR PRINTING — Up to 2 years of ink in the box4 (and with every replacement ink set) for fewer out-of-ink frustrations
  • ZERO CARTRIDGE WASTE — By using an Epson EcoTank printer you can help reduce the amount of cartridge waste ending up in landfills
  • HOME PRINTER DESIGNED FOR RELIABILITY — The Epson EcoTank ET-2800 All-in-One Supertank Color Printer creates vivid, detailed prints and documents thanks to Micro Piezo Heat-Free Technology; Fire off 10 ISO pages per minute1 to easily finish large jobs
<link rel="stylesheet" href="print.css" media="print">

A single @media print block is convenient for a few changes; a separate stylesheet isolates a larger print layout. Both approaches are suitable for print output.

2. Set paper size and margins

Use @page for the page dimensions, orientation, and margins. For example, this requests portrait A4 pages with 16 mm margins:

@page {
  size: A4 portrait;
  margin: 16mm;
}

For a landscape document, use size: landscape. To begin a new printed page after a particular section, apply a page break such as break-after: page to that section. Page setup does not guarantee that every element will fit as intended: Chrome fragments content across pages, so inspect the print rendition.

Chrome and Firefox support @page for page size and margins, but support for less common paged-media features varies. For a general Chrome workflow, start with page size, orientation, and margins; verify advanced features in the Chrome version you intend to use.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Sale
Epson EcoTank Photo ET-8550 Wireless Wide-Format All-in-One Tank Printer
  • CARTRIDGE-FREE PRINTING — Print lab-quality photos, graphics and creative projects; Get vibrant colors and sharp text with Epson's high-accuracy printhead and Claria ET Premium 6-color inks
  • INK BOTTLES — Save on photos1 and creative projects with affordable in-house printing; All-in-one printer allows you to print 4" x 6" photos for about 4 cents each vs. 40 cents with traditional ink cartridges1
  • LESS FREQUENT INK REPLACEMENT — Replacement ink bottles don't have to be changed nearly as often as ink cartridges¹; Printer, scanner and copier lets you print up to 6,200 color pages³
  • PRINT FOR LONGER — Up to 2 years of ink in the box² (and with every replacement ink set) for fewer out-of-ink frustrations with this wireless printer
  • ZERO CARTRIDGE WASTE — Epson EcoTank printer helps reduce the amount of cartridge waste ending up in landfills; Cartridge-free printer uses high-yield ink bottles; Each replacement ink bottle set is equivalent to about 100 individual ink cartridges⁴

3. Preview the print rendition in Chrome

  1. Open Chrome’s print interface and review the page preview before saving. Check page breaks, margins, headers and footers, and whether important content is clipped or separated awkwardly.

  2. To work on the CSS without repeatedly creating a PDF, open DevTools, open the Rendering panel, and choose print under Emulate CSS media type. You can then inspect elements and edit their print styles.

  3. Return to the print interface after making changes and inspect the resulting pagination again. CSS conflicts, page fragmentation, browser settings, and Chrome version can all affect the output.

4. Save the page as a PDF

In Chrome’s print interface, choose a PDF destination and save the generated file. Menu names and the exact route to the print interface can vary by platform and browser version, so use the print preview and the available PDF destination in your installation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
HP Smart Tank 5000 Wireless All-in-One Ink Tank Printer, Scanner, Copier with 2 Years of Ink Included, Best-for-Home, Cartridge-Free, Refillable and AI-Enabled. (5D1B6A)
  • SET IT UP ONCE AND PRINT WITH CONFIDENCE. No complicated maintenance. Just easy, reliable printing you can count on.
  • INK FOR YEARS. NOT MONTHS. Up to 2 years of ink included. Get thousands of pages of cartridge-free printing. More pages, less hassle
  • KEEPS PRINTING WELL AFTER COMPETITORS HAVE QUIT. No complex maintenance. Sharper text, richer colors.[2] Only with HP Smart Tank
  • PREMIUM SUPPORT - Strong technical expertise to solve issues faster
  • THE LAST PRINTER YOU'LL EVER NEED. Enjoy years of refillable, cartridge-free printing.

If your page has a print button, it can open the current document’s print dialog with:

window.print();

The method opens the print dialog for the current document. If the document is still loading, the browser finishes loading before opening the dialog.

5. Choose headers, footers, and page-margin content

Chrome may add its own print headers and footers when there is enough margin space. You can turn that browser-generated content off in the print dialog; margins set to zero or too small for it also prevent it from appearing.

CSS-generated content in page-margin boxes is a separate option. Chrome for Developers says this capability is available from Chrome 131; its article describing the feature was published October 30, 2024. This version qualification applies to generated margin content, not to basic print styles or @page. If you use margin boxes, check the output in the specific Chrome build you target. Browser-generated headers and footers can coexist with author-provided margin content, and their appearance may not be uniform on every page.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
NDYIN Portable Printers Wireless for Travel, N80 Bluetooth Thermal Printer
  • Wireless Bluetooth Printer: Portable thermal printer compatible with iPhone, Android phones, iPad and tablet computers via Bluetooth. For smartphones, please download the "Nada Print" App. You can also connect to laptops and computers for printing using a USB-C cable. (Note: Laptops and computers can only be connected via USB and require the installation of a driver first. Bluetooth connection is not supported.)
  • No-ink printing: Only supports US Letter and A4 size thermal paper.(Doesn't support regular paper) The no-ink portable thermal printer uses direct thermal technology, requiring no ink, toner or ribbons, making it environmentally friendly, cost-effective and time-saving. The thermal printer package comes with a roll of US Letter thermal printing paper. Note: When installing the paper, remember to switch the paper size switch on APP
  • Clear Print: NDYIN N80 portable thermal printer adopts high-definition printing technology, with a 203DPI resolution to provide you with clear printing results. This mobile printer is compatible with roll paper, folded paper and tattoo transfer paper, supporting printing from your mobile phone PDF, Word, pictures and web pages anytime and anywhere. It is recommended to use our NDYIN thermal paper to achieve good printing quality
  • Portable wireless printer for travel: The thermal printer is equipped with a built-in 1500mAh rechargeable battery, which can print 160 sheets of 8.5" x 11" thermal paper after being fully charged. It weighs only 1.5 pounds and is compact in size. This ink-free portable printer can be easily carried in a backpack or briefcase! It is perfect for business travel, cars, small offices, construction sites, schools and homes. You can print documents, contracts, invoices and boarding passes anytime and anywhere
  • The N80 thermal printer has a wide range of uses. The package includes the N80 printer, a roll of US Letter paper(7m/roll), a user manual, a guide card, a type-C soft cable and a type C adapter. Note: The charging adapter is not included. Special thermal paper is required for use; ordinary paper cannot be used. This ink-free portable thermal printer is suitable for various scenarios such as home, school, travel, office, and outdoor, meeting the printing needs of different groups of people. This tattoo template printer is also compatible with tattoo transfer paper, making it an ideal choice for tattoo art
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

If you need a screenshot rather than a paginated PDF, ScreenshotNeo can return a webpage capture through one GET request. This example saves a WebP response:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

See the ScreenshotNeo API documentation for request options. ScreenshotNeo removes supported cookie banners, newsletter popups, and chat widgets before capture; bot checks, blank pages, timeouts, failed loads, and cache hits are not billed. Its MCP server provides screenshot tools for AI agents. The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000. These are screenshots, not a replacement for Chrome’s paginated PDF workflow. Sign up for ScreenshotNeo’s free plan.

Frequently Asked Questions

Does print CSS change how the webpage looks on screen?

No. Rules inside @media print target printed output, including PDFs, rather than the normal screen presentation.

Can I use Chrome’s print preview to debug print CSS?

Yes. In DevTools, use the Rendering panel’s print option under Emulate CSS media type to inspect and edit the print rendition.

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

Does Chrome 131 mark the start of CSS print styles?

No. Chrome 131 is the version identified for CSS-generated page-margin content; basic print styles and @page are separate capabilities.

Quick Recap

Bestseller No. 3
HP Smart Tank 5000 Wireless All-in-One Ink Tank Printer, Scanner, Copier with 2 Years of Ink Included, Best-for-Home, Cartridge-Free, Refillable and AI-Enabled. (5D1B6A)
HP Smart Tank 5000 Wireless All-in-One Ink Tank Printer, Scanner, Copier with 2 Years of Ink Included, Best-for-Home, Cartridge-Free, Refillable and AI-Enabled. (5D1B6A)
PREMIUM SUPPORT - Strong technical expertise to solve issues faster; THE LAST PRINTER YOU'LL EVER NEED. Enjoy years of refillable, cartridge-free printing.
$194.03

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.