I'm looking for a way to change the background color of an image when hovering over it. Specifically, I have a circular image with a white background and want the circle itself to turn blue on hover.
This is my HTML code:
<div class="fb-icon">
<a href="http://www.facebook.com/mypage" target="_blank">
<img src="images/fb_normal.png" alt="Facebook">
</a>
</div>
In my CSS, I have tried:
.fb-icon:hover {
background: blue;
}
However, this code results in the entire circle being framed in blue upon hover, rather than just changing the background of the circle itself. I am aiming for a signal-like effect where the white circle turns blue on hover.
If anyone has a solution using CSS or any other method, please let me know. Apologies for the lengthy explanation.
View the issue here: link