Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap 3.1.1 Page: Hide the URL of links

I have a Bootstrap 3.1.1 page, that I would like to hide the URL of links when doing a print / print preview. How can I do this?

I want to show the links themselves like "Cart", "My Account", etc etc., but do not want to show the links.

Screenshot of what's occurring: http://i.imgur.com/CQoqVyN.png

like image 332
James Anderson Avatar asked Apr 11 '14 21:04

James Anderson


2 Answers

@media print {
  a[href]:after {
    content: "";
  }
}
like image 116
iamnotsam Avatar answered Nov 04 '22 22:11

iamnotsam


@iamnotsam is right. I needed to add !important after the content to get it to work.

    @media print {
      a[href]:after {
        content: "" !important;
      }
    }
like image 29
AP Fritts Avatar answered Nov 04 '22 20:11

AP Fritts