Matthew Lincoln, PhD Art History and Digital Research

Environmentally-friendly print.css

I ran accross this stylesheet by David Bushell while searching for a simple CSS for printing.

@media only print
{
/* hide every element within the body */
body * { display: none !important; }
/* add a friendy reminder not to waste paper after the body */
body:after { content: "Don't waste paper!"; }
}

Har har har.


Comments are enabled via Hypothes.is


Cite this post:

Lincoln, Matthew D. "Environmentally-friendly print.css." Matthew Lincoln, PhD (blog), 10 Jul 2013, https://matthewlincoln.net/2013/07/10/environmentally-friendly-print-css.html.


Tagged in: Code