-3
<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?

nickjsb
  • 21
  • 2

5 Answers5

0
i.fa.fa-windows {
  color:red;
}

If this doesn't work for you, then some your other css rule is override it

protestator
  • 311
  • 1
  • 15
0

try this

.fa-windows {
  color: #00DDFF !important;
}
Mustapha Larhrouch
  • 3,373
  • 3
  • 14
  • 28
Kamlesh Bhurke
  • 309
  • 2
  • 6
  • 1
    ohh I didnt see the `#` `.fa-windows { color: #00DDFF; }` this is correct if that is not working try to use this `.fa-windows { color:#00DDFF !important; }` – Kamlesh Bhurke Oct 03 '19 at 08:39
  • You can click on the edit button above and update your answer with the correct info. – Gosi Oct 03 '19 at 08:42
0

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>
Tec J
  • 108
  • 7
0

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>
Syed Taha
  • 9
  • 2
0

Your selector is wrong and for the hexadecimal code color you have to add the character '#', try this:

.fa-windows {
  color: #00DDFF;
}
borchvm
  • 3,533
  • 16
  • 44
  • 45