I have this:
My HTML:Code:img.decor{ text-decoration:none; border:#CCCCCC thin solid; padding: 4px; }
HTML Code:<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:
but it doesn't work. Any ideas??Code:img.decor a:hover{background-color:#CCCCCC;}
I just start learning CSS. thanks



Reply With Quote

Bookmarks