My blog shows links when printed through a[href]:after { content:" (" attr(href) ")"; }
, however I do not want it to show image links since I also removed them from CSS for printing. Is there a way to remove these links through something like the a[href]:after { content:" (" attr(href) ")"; }
I mentioned (such as ignoring something that ends with .jpg or .png, I suppose ...)?
Example:
The code basically looks like 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 looks like this: 3. Diligence to strive; put a force greater than you have. Do not stand still, fix and provide.
/ p> The image exits as a URL because it is configured like this, using the code a[href]:after { content:" (" attr(href) ")"; }
. My problem is that I do want links to be printed, except for image links .