<i class="fa fa-windows" style="font-size:200px;"></i>
I have this css:
.fa fa-windows {
color: 00DDFF;
}
however the colour doesnt seem to change. What am I doing wrong?
<i class="fa fa-windows" style="font-size:200px;"></i>
I have this css:
.fa fa-windows {
color: 00DDFF;
}
however the colour doesnt seem to change. What am I doing wrong?
i.fa.fa-windows {
color:red;
}
If this doesn't work for you, then some your other css rule is override it
try this
.fa-windows {
color: #00DDFF !important;
}
You can do it like this. When you are using two classes in order to select an element don't keep spaces between those classes.
.fa .fa-windows - This is wrong.
.fa.fa-windows - This is right.
<style type="text/css">
.fa.fa-windows {
color: #00DDFF;
}
</style>
You are missing # sign in color code and (.) in class. please try this code below:
.fa.fa-windows {
color: #00DDFF !important;
}
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"/>
<i class="fa fa-windows" style="font-size:200px;"></i>
Your selector is wrong and for the hexadecimal code color you have to add the character '#', try this:
.fa-windows {
color: #00DDFF;
}