We use css to add icons to links to files such as PDFs, Word, Images, etc. For example:
<a href="mypdf.pdf">Download PDF</a>
a[href$=".pdf"]::after {
content: "\00a0\f1c1";
display: inline;
font-family: FontAwesome;
font-size: 1em;
}
How do I tell CSS to not add an icon if the link is around an image?
<a href="mypdf.pdf"><img src="someimage.gif"></a>
I've tried numerous versions of the following with no luck.
a::after img {content: ""}
thanks, Shauna