Need to remove href values when printing in Chrome


I'm attempting to customize the print CSS, and finding that it prints links out with the href value as well as the link.

This is in Chrome.

For this HTML:

<a href="">Google</a>

It prints:

Google (

And I want it to print:


This question is tagged with css printing hyperlink print-css

~ Asked on 2011-09-04 20:40:45

The Best Answer is


Bootstrap does the same thing (... as the selected answer below).

@media print {
  a[href]:after {
    content: " (" attr(href) ")";

Just remove it from there, or override it in your own print stylesheet:

@media print {
  a[href]:after {
    content: none !important;

~ Answered on 2013-02-18 07:08:26


It doesn't. Somewhere in your print stylesheet, you must have this section of code:

a[href]::after {
    content: " (" attr(href) ")"

The only other possibility is you have an extension doing it for you.

~ Answered on 2011-09-04 20:46:59

Most Viewed Questions: