Answers for "change color of icon in css"

5

css change font awesome icon color

<a href="/users/edit"><i class="fa fa-cog" style="color:black !important;"></i> Edit profile</a>
Posted by: Guest on April-01-2020
2

css change font awesome icon color

.fa {
    color: red !important;
}
Posted by: Guest on April-01-2020
0

change color of icon css

<style>
#icon{
  font-size:50px;
  color:red;
  transition-duration:.6s;
  }
</style>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

<i onclick='this.style.color="blue"' id='icon' class='fa fa-home'></i>
Click the icon.
Posted by: Guest on May-26-2021

Code answers related to "change color of icon in css"

Browse Popular Code Answers by Language