How to style Font Awesome in HTML document

309 views Asked by At

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.

1

There are 1 answers

1
Muhammet On BEST ANSWER

You have a typo, color property should be inside quotes

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