Skip to content

Instantly share code, notes, and snippets.

@nimbupani
Created March 20, 2010 22:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nimbupani/a5acef7fc2dbe12f1644 to your computer and use it in GitHub Desktop.
Save nimbupani/a5acef7fc2dbe12f1644 to your computer and use it in GitHub Desktop.
Print CSS for Markup Magic
@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