Your daily dose of a11y:
- 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-inside. You can limit the number of lines of text that carry over to the next page with
orphansproperties, and control how an element’s border renders when it’s split across multiple pages (
box-decoration-break) . Finally,
@pageselectors and targets allow you to adjust margins on a per-page basis.