Read more

Bootstrap: How to avoid printing link URLs

Thomas Klemm
November 14, 2014Software engineer

By default, Twitter Bootstrap's print styles include printing links.

/* Bootstrap's way of printing URLs */
@media print {
  a[href]:after {
    content: " (" attr(href) ")";
  }
}
Illustration book lover

Growing Rails Applications in Practice

Check out our e-book. Learn to structure large Ruby on Rails codebases with the tools you already know and love.

  • Introduce design conventions for controllers and user-facing models
  • Create a system for growth
  • Build applications to last
Read more Show archive.org snapshot

If you want to turn that off Show archive.org snapshot , you can do

/* Don't print link hrefs */
@media print {
  a[href]:after {
    content: none
  }
}
Posted by Thomas Klemm to makandra dev (2014-11-14 13:51)