I'm confused with deep elements to make them looks like different on :hover
for example i've this html code (of course I've another sub div's but removed for this example)
I would like the .fb:before
icon to change it's color on hover
#sub .ligne2 .suivi .fb:before {
font-family: 'fontawesome';
content: "\e616";
color: black;
}
#sub>.ligne2>.suivi>.fb:hover #sub>.ligne2>.suivi>.fb:before {
font-family: 'fontawesome';
content: "\e616";
color: red;
}
<div id="sub">
<div class="ligne2">
<div class="suivi">
<div class="title">Social</div>
<span class="fb"></span>
<span class="pinterest"></span>
</div>
</div>
</div>
I've tried many css solutions without getting the proper result. Especially by reading this StackOverflow post : How to affect other elements when a div is hovered
Thanks for your help
Sebastien