Created
March 16, 2012 01:54
-
-
Save hsquareweb/2048111 to your computer and use it in GitHub Desktop.
CSS: Pseudo Links For Printing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* CSS Pseudo Links For Printing */ | |
p a:after {content: " (http://www.url.com/" attr(href) ")";} /* internal links will start with main site url */ | |
p a[href^="http://"]:after, a[href^="https://"]:after {content: " (" attr(href) ")";} /* show external links */ | |
p a[href^="javascript:"]:after, p a[href^=""]:after {content: "";} /* hide JavaScript and empty links */ | |
p a[href^="#"]:after {display: none;} /* hide internal links */ | |
p a {word-wrap: break-word;} /* break long links */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment