1
My blog shows the links when printed through a[href]:after { content:" (" attr(href) ")"; }
, however I don’t want it to show the image links, since I also removed them from the CSS for printing. Is there any way to remove these links through something like the a[href]:after { content:" (" attr(href) ")"; }
that I mentioned (such as ignoring something that ends with . jpg or . png, I suppose...)?
Example:
The code appears basically like this (a text followed by an image):
<span>3. Diligência para se esforçar; pôr uma
força maior do que a que se tem. Não fique parado, zele e proveja.</span>
<a href="https://4.bp.blogspot.com/-ipbE_b01j_A/Wp_Xj93YDrI/AAAAAAAAE64/hUZW_VqNjpMbL9BanqgF1Db8paRdblYPgCLcBGAs/s1600/a-constancia-e-mais.jpg"><img alt="constância mais importante que a intensidade" src="https://4.bp.blogspot.com/-ipbE_b01j_A/Wp_Xj93YDrI/AAAAAAAAE64/hUZW_VqNjpMbL9BanqgF1Db8paRdblYPgCLcBGAs/s320/a-constancia-e-mais.jpg" title="Seja intenso, contudo constante!"/></a>
When printed, it comes out like this: 3. Diligence to exert oneself; to place a force greater than one has. Do not stand still, watch and provide.
The image comes out in URL form because it is configured like this, through the code a[href]:after { content:" (" attr(href) ")"; }
. My problem is that yes, I want the links to be printed, except the image links.
I accepted Hugo’s answer, but still, thank you for the collaboration, man! God bless you!
– winiercape
Don’t be so, the @hugocsl’s answer is even better =)
– Bruno Eduardo