1

Hi would like to adjust the font-size and color on font awesome. This is the code I am using and I can either get the color or the font-size to work. But not both together. Also not sure if I should use in-line CSS or create a separate CSS file. It's a short HTML form (calculator).

<i class="fa fa-venus" style="font-size:32px"; color:pink></i>    

Is there something wrong with my syntax? I have done extensive searching and can't seem to find the problem.

Thanks.

Joanna
  • 23
  • 4
  • 1
    you have a typo in your style, move the " to the end of pink, and add a ; after pink use a IDE to help you with the syntax – Juan Jun 22 '15 at 13:29
  • font awesome is just used like a font, what ever you can change to any font can be change in the same manner with font awesome, nothing special here. The magic is with the vector images and the css they provide. – Juan Jun 22 '15 at 13:30

1 Answers1

3

You have a typo, color property should be inside quotes

<i class="fa fa-venus" style="font-size:32px; color:pink;"></i>   
Muhammet
  • 3,288
  • 13
  • 23