dai11y 22/01/2020

Your daily frequent11y newsletter, brought to you by @ChrisBAshton:

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.

Prefer longer newsletters? You can subscribe to week11y, fortnight11y or even month11y updates! Every newsletter gets the same content; it is your choice to have short, regular emails or longer, less frequent ones. Curated with ♥ by developer @ChrisBAshton.

Loading...