Here is my code:
span{
color: #666;
}
span:before{
content: "\f059";
display: inline-block;
vertical-align: middle;
font-size: 15px;
font-family: FontAwesome;
color: #999;
margin-right: 10px;
}
span:hover{
color: red;
}
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"/>
<span>something</span>
Now I need to make that icon red too on hover of <span>
. How can I do that?