NewsCrawler.org

Websites Should Be Printable

Brennen Puth describes making his personal website printable. He reads many printed documents and finds that marking them up engages him better than reading on a laptop. A test print of his own page with CTRL-P turned out poorly: the text was about 2 levels too big, the header looked bad on paper, and links turned an unhelpful gray in black-and-white printing.

He fixed this with a CSS media query[1] for print: a .noPrint class hides the header, an .onlyPrint class shows a small author attribution near the subtitle, paragraph text is set to 12pt with headers between 13pt and 16pt, codeblocks get a 3px black border, and links are forced to black. Codeblocks remain the weakest part, because they print as one chunk and do not break across page boundaries, and he asks readers for a solution.

The work took him a decent chunk of a morning even though his site is not complex, and he doubts many people print webpages regularly. Still, he argues that if a site consists mostly of text, letting readers experience it in their favorite medium is a kindness from engineers to users that is worth the effort.

Read the original brennenputh.meDiscussion

Discussion

One commenter says his hobby recipe site became printable by accident because it uses native HTML instead of dynamic DOM elements[2], so his ten-year-old can follow recipes on paper without a screen in the kitchen. Commenters on Hacker News counter that they cannot recall the last time they printed anything and that printer drivers on a Pixel and a Chromebook are rudimentary, with at most about 5 parameters in the print dialog; the latter mentions replacing a 2011-era HP printer with a SOHO[3] HP model.

Sources

Published: First seen: Читать по-русски

Open as a page