I have this code:
<div class="buttons-wrapper">
<div class="comments-qty">
<i class="fa fa-comments"></i>
</div>
<div class="link-to-post"><a href="#">
<i class="fa fa-chevron-right"></i></a>
</div>
</div>
When I hover the div "buttons-wrapper", I want to change the color of fa-chevron-right
. I used this:
.buttons-wrapper:hover + .fa-chevron-right{
background-color:green;
color:white !important;
}
But it doesn't work.