Chris Ashton

dai11y 22/01/2020

Your daily dose of a11y:

How to Create Printer-friendly Pages with CSS

  • Article by Craig Buckler, packed with tips on how to improve your website’s print styles; something often overlooked even by a11y-aware devs. I guarantee you’ll learn something new: there are various techniques for avoiding wasting ink. You can automatically add supplementary content such as URLs after links using pure CSS, or print-only content such as copyright messages. You can define page breaks using break-before, break-after or break-inside. You can limit the number of lines of text that carry over to the next page with widows and orphans properties, and control how an element’s border renders when it’s split across multiple pages (box-decoration-break) . Finally, @page selectors and targets allow you to adjust margins on a per-page basis.

This daily dose of accessibility news and TLDR summary is brought to you by @ChrisBAshton. If you find these too frequent, try week11y or fortnight11y instead.

Loading...