and the answer that someone provided worked great! However, we are using a propriatary CMS that is not giving me access to all the linked images. Therefor, I am still stuck looking for another solution where I only need to alter the CSS style sheet, and not the html code.
Any thoughts?
Basically, I turned on underline while hovering over links, which is great for text, but not so great for linked images. I created another class for linked images, but I can’t access all of them to add an attribute.
right, ok, but there are going to be more images like that, but I guess you are telling me that I have to take it on a case by case basis, as I find them.
Yes, it’s not really an issue of images, but an issue of <a> links that have an underline on hover. You could universally set all links to text-decoration: none on hover if you wanted to, but I don’t think that’s what you want, so you’ll need to target just the relevant ones instead, as I did above.
Or, alternatively, you could add a class to any link on which you wanted no text decoration and then serve all such links with one rule. You’d just have to watch out for specificity, though. (EDIT: ah, but that involves changing the HTML, which doesn’t work for you.)