Brennen Puth, a recent graduate with a BS in Computer Science and Cyber Operations, is seeking work in the northeastern US. He shares his experience attempting to optimize webpage printing. While standard browser printing displays content, formatting issues persist, including oversized text, ugly headers, and gray links in grayscale.
Puth implemented a CSS snippet to improve print output. The snippet uses selectors to hide headers and show author attribution. It adjusts font sizes, setting body text to 12pt and headers progressively larger.
It also styles code blocks with a yellow background and forces links to appear black. Despite these efforts, code blocks remain the ugliest printed element. Puth expresses sympathy for those who do not prioritize printing, noting his site's complexity.
He hopes more webpages consider print functionality, believing that allowing text in a preferred medium is beneficial. The digital medium offers flexibility, and good software is built on engineer-to-user kindness. He concludes by inviting others to find value in his shared code.
Source: Hacker News · Summarized by HeadlinesBriefing