I am encountering a problem with the hover effect.
I have 3 child div's structured as follows:
<div class="parent">
<div class="child1">A</div>
<div class="child2">B</div>
<div class="child3">C</div>
</div>
I have set up a hover effect on the parent div to change the color of child1 and child2, but the hover effect is also affecting child3.
Is there a way to exclude the hover effect on child3 alone?
Any assistance in resolving this issue would be greatly appreciated. Thank you in advance.
div.parent:hover {
color: #909090;
}
In the given example, I want to prevent the change of color on the text "C" even though it is located within the parent div.