Toronto Mike

CSS Help, Please

Valid CSS

If 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.

Author image
About Toronto Mike
Toronto
I own TMDS and host Toronto MIke'd. Become a Patron.