Skip to content

Instantly share code, notes, and snippets.

@while0pass
Created July 14, 2012 23:29
Show Gist options
  • Save while0pass/3113857 to your computer and use it in GitHub Desktop.
Save while0pass/3113857 to your computer and use it in GitHub Desktop.
@media print {
/* Append the address of the link */
a[href]:after {
content: " (" attr(href) ")";
/* break long urls that don't fit the page width [http://www.w3.org/TR/css3-text/] */
word-break: break-all;
overflow-wrap: break-word;
}
a[href^="javascript:"]:after,
a[href^="#"]:after { content: "" }
/* Append the expansion of the abbriviation */
abbr[title]:after { content: " (" attr(title) ")" }
/* Append the source of the citation */
q:after { content: " [" attr(cite) "]" }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment