I have this:
img.decor{
text-decoration:none;
border:#CCCCCC thin solid;
padding: 4px;
}
My HTML:
<a href="google.com"><img class="decor" src="images/birds.jpg" /></a>
when I hover over the image "decor" in my CSS, I would like the whole image to turn grey. I tried this:
img.decor a:hover{background-color:#CCCCCC;}
but it doesn't work. Any ideas??
I just start learning CSS. thanks