Ignoring hover style in inside image

Posted by user289249 on Stack Overflow See other posts from Stack Overflow or by user289249
Published on 2010-03-09T00:15:32Z Indexed on 2010/03/09 0:21 UTC
Read the original article Hit count: 512

Filed under:
|

I want the style to apply on the "a" elements, and not the img. Here's an example:

a:hover {background: #555;}

I tried to do something like this:

a:hover img {background: none;}

though I knew it's not going to do anything.

The solution I found in this question didn't work for me, because the "display: none" is moving the image when hovering.

© Stack Overflow or respective owner

Related posts about css

Related posts about html