Websites Should Be Printable

68 points by zk


chrismorgan

Websites shouldn’t set code { background-color: #1e1e1e; } without setting a color! In light mode (which is what most people will experience), inline code will be black-on-almost-black. I don’t see how the author could have missed that.


On the suggestions and some details of the page itself:

The first rule of ARIA is: don’t use ARIA.

The first rule of print stylesheets should be a similar brand of “don’t use print stylesheets”. Most ways of doing things will produce at least tolerable results without them, and it’s very easy to cause trouble with them.

JulianSildenLanglo

I just did a print-preview of my website and noticed that all the links are busted. I don't like that.
Are there any good solutions to this? Off the top of my head I can think of:

1. Simply always have the full url showing next to the link. Ugly. 2. Have the full url there in text, but hidden by css when not in print-mode. Messy, and might break on some viewers. 3. Have a [1] footnote thingy next to every link and a list of links at the bottom of the page. Simple enough.

Actually, it's really simple and I've already added it to my homepage:

@media print 
{
  a[href]:after
  {
    content: " [" attr(href) "] ";
  }
}
icefox

I... don't even have a printer. It'd be cool if they rendered well on e-readers, I guess?

ryan-duve

I found by sticking to native HTML instead of dynamic DOM elements I luckily got this by accident. I run a hobby recipe site structured that way and the ability to print recipes on paper is invaluable because now one (such as my ten year old) doesn't need a screen in the kitchen to follow directions.