How to print url after a link in CSS

To print url after a link in CSS you can use the following snippet.
When printing the page each link has its ahref target appended surrounded by Parentheses.

Sample CSS

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


Please Share us:
Please rate this snippet

One thought on “How to print url after a link in CSS

Leave a Reply