Skip to content

Instantly share code, notes, and snippets.

@Lego2012
Last active June 2, 2022 14:09
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Lego2012/2642ee67557b15df3a57be70334b9477 to your computer and use it in GitHub Desktop.

HTML:

<a href="http://example.com">Example</a>

CSS:

@media print {
    a::after {
        content: ' (' attr(href) ')';
    }
}

Mit weniger Noise:

a[href^='http']:not([href*='mywebsite.com']):after {
    content: ' (' attr(href) ')';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment