I\'ve a php page, with a button that able the user to print via window.print function.
I\'d need to know how to hide the href attribute of an html tag when printing
Thank you, the solution i've found that work form me is similar to your
#section_to_print a[href]:after { display:none; }
In fact, the problem was generated by some css containing a rule like follow:
a:link:after, a:visited:after {content:" (" attr(href) ")";font-size:90%;}
Like suggested at this link:
stackoverflow.com/questions/4834517/…
However, thank to much :) Regards
why dont you use:
#section_to_print a{
color:black;
text-decoration:none;
}