CSS Help, Please

Published by Toronto Mike on April 3, 2005 @ 16:33 in

Valid CSSIf you're clueless when it comes to CSS, you may as well stop reading right here. I've got an issue I'm hoping one of you CSS gurus can help me with.

Lets suppose I want to alter the background colour for anchor tags when one hovers over them. I was doing so on this very site until today in my CSS file with a simple a:hover { background: #003399 }. This had the desired effect for text anchors, but it was also forcing a background colour behind my transparent gifs. This, I didn't want.

So, what can I add to my CSS to prevent this hover effect from decorating images? Keep in mind, I'd like to do this without having to define a new class and add this new class name to the html file like this: <a class="nohover" href="images/transparent.gif" />. I'm aware I can always do that.

I'd love to hear your ideas so if you have a clue please contact me. My Google Fu is weak.

Comments No comments

No Responses to "CSS Help, Please"


Leave a Comment


No comments? C'mon, we can do better... Leave a comment above and let's start this conversation!


« Paying The Price Tragically Hip Reminder »