All threads / How do I exclude images in my auto formatting of PDF links?

Ask A Question

Notifications

You’re not receiving notifications from this thread.

How do I exclude images in my auto formatting of PDF links?

AustinLan asked in CSS

I added some CSS to my site to put a font a https://birthdaywishes.onl/ wesome PDF icon in front of every hyperlink that links to a PDF. It looks great, but there are a lot of instances where there are thumbnails images that also link to a PDF and https://elecpay.in/tneb/ it looks dumb having the icon in front of the image. Is there something I can add to my CSS to exclude images that are hyperlinked, or CSS that I could add as a class to hyperlinked images to not have the icon? https://myip.kim/

Here is the CSS I used. The not(img) obviously didn't work.

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 37,344+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.