Hey, Alice! Great work! π
This is how your HTML code is structured:
<div class="circle">
<a href=""><i class="fab fa-facebook-f"></i></a>
</div>
I noticed you're changing the circle color on hover using .circle:hover
. That's working as expected.β
Your <i> icon element is not updated because it's inheriting the <a> element. And the <a> element only changes when hover is on itself. Probably because it's inheriting this other rule that is applied on your <a> element on hover:
color: #0056b3;
(note that the blue on the symbol is different from the blue on the circle)
You want the child element <a>
color to be updated at the same time as the circle so you need to add a new rule for this element color to change when the hover is on the the parent element - <div class="circle">
.
This rule would be something like this:
parent:hover child {
color: hover-color
}
I hope this helps. Happy coding! π»β¨π