nimbupani / print.css secret
Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Print CSS for Markup Magic

View print.css
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
@media print {
* { background:transparent !important; color:#444 !important; text-shadow:none; }
a, a:visited { color:#444 !important; text-decoration:underline; }
a:after { content:" (" attr(href) ")"; }
 
abbr:after { content: " (" attr(title) ")"; }
 
pre, blockquote { border:1px solid #999; page-break-inside:avoid; }
@page { margin: 0.5cm; }
p, h2, h3 { orphans:3; widows:3; }
h2, h3{ page-break-after:avoid; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.