html - Image under anchor tag onmouseover highlighted background color not changing -
here code onmouseover on image under anchor tag highlighted color not changing please can know doing wrong
<div class="iconlink"> <a href="/classification/classificationlabel" title="classification label"> <img src="/content/images/labels-72x72.png" /><div>classification label</div> </a> </div>
i tried these types
.iconlink a:hover {background-color: #000000; color: #000000;0}
and
<div class="iconlink"> <a href="/classification/classificationlabel" title="classification label" class="hove"> <img src="/content/images/labels-72x72.png" /><div>classification label</div> </a> </div> .hove:hover{background-color: #000000; color: #000000;}
you need apply background-color
img
in css like:
.iconlink a:hover img { background-color: #000; } .iconlink a:hover { color: #000; }
Comments
Post a Comment