We use a a[href*=".pdf"]
CSS selector rule to show a pdf icon when the href has .pdf as its extension, but the problem is it’s showing for <a>
tags with image tags inside them as well as well.
<a href="foo.pdf">foo</a> => Works fine
<a href="foo.pdf"><img src="big_image.gif" /></a> => No good.
We don't want to show the PDF icon for this kind of links.
Please let me what kind of CSS selectors we should write for such case?