Skip to main content
Module 14 · Lesson 4 of 456/60 in the course~19 min
Module lessons (4/4)

Print Stylesheets, prefers-contrast & Windows forced-colors

Lesson preview5 hands-on exercises readyModern HTML & CSS · Responsive Media, SVG, Visual Effects & Adaptive Modes

Keep interfaces unmistakable in OS High Contrast (CanvasText/Highlight borders) and strip noisy navigation chrome when printing.

What you'll learn in this lesson

  • Author clean @media print rules (@page margins, hiding interactive navigation/toolbars) for invoices and docs.
  • Keep interactive card borders and focus outlines visible under Windows High Contrast (@media (forced-colors: active)).
  • Support higher-contrast preference users via @media (prefers-contrast: more).

Overview

Websites don't only run inside glossy MacBook Retina displays. Users frequently print receipts or documentation to PDF, or browse under OS-level contrast themes:

Sections covered in this lesson

  1. 1Respecting How People Actually Output & Read Your UI
Pro Lesson · Responsive Media, SVG, Visual Effects & Adaptive Modes

Unlock "Print Stylesheets, prefers-contrast & Windows forced-colors" and the full Modern HTML & CSS curriculum

Keep interfaces unmistakable in OS High Contrast (CanvasText/Highlight borders) and strip noisy navigation chrome when printing.

Unlock all 5 hands-on exercises in this lesson plus every advanced WebAssembly module with automated checks.

  • Instant access to all advanced modules in Modern HTML & CSS plus 17 more courses
  • Hands-on browser exercises with automated test suites and solutions
  • 14-day money-back guarantee processed via Paddle.com

14-day guarantee · Cancel anytimeModule 1, all 18 interactive games, and cheatsheets are always free.