secret
Last active

Print CSS for Markup Magic

  • Download Gist
print.css
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; }
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.