Font Awesome Icon Icon | | HTML, CSS

Adding Font Awesome Icon HTML () in web project is very simple. You need to add the icon class along with fa, it is basically main class and mandatory for icons so do not forget to add this class. You can customize Font Awesome Icon Icon as per your requirement, suppose that you need to chnage the color of icon or change the size of size. It is pretty simple to change color of icon just add style="color:red" it will make font color red. On the same way you can change size of icon by just adding style="font-size:50px;". Smililarly you can add border color, shadow and other font styles to . Hope this icon fullfilled your need. Thanks for visiting us.

Change Font Awesome Icon Color

Sometimes we need icons in different color, as we suggested by adding css style we can change color. Here we have created one example to change color of icons with css classes.


    <style>
.blue-color {
color:blue;
}
.green-color {
color:green;
}
.teal-color {
color:teal;
}
.yellow-color {
color:yellow;
}
.red-color {
color:red;
}
</style>
<i class=' blue-color'></i> <i class=' green-color'></i> <i class=' teal-color'></i> <i class=' yellow-color'></i> <i class=' red-color'></i>

Output of the above example will be as below-


Note- Make Sure You have included the below Font Awesome file in header-
            
            
            

Search Items-


 

Happy-holi-image Icon Font Awesome - FAQs

⭐What is the Font Awesome Icon code?

Icon Code is - .

⭐ What does the Icon mean?

is the Icon code of Font Awesome .

⭐ Can we add Icon in different sizes?

Yes, you can Icon of in various pixels.

⭐ How to add a Blue color Font Awesome Icon?

Add the blue color icon of the font awesome by using code: style='color: blue;'.

⭐ How to make white color icon of a Font Awesome ?

To change the icon to white color use code: style='color: white;'.

Advertisements



A PHP Error was encountered

Severity: Notice

Message: Undefined variable: rdata

Filename: Fontawesome/FaIconDetailView.php

Line Number: 564

Backtrace:

File: /home/u613989013/domains/fontawesomeicons.com/public_html/application/views/Icon/Fontawesome/FaIconDetailView.php
Line: 564
Function: _error_handler

File: /home/u613989013/domains/fontawesomeicons.com/public_html/application/helpers/core_helper.php
Line: 29
Function: view

File: /home/u613989013/domains/fontawesomeicons.com/public_html/application/controllers/Icon.php
Line: 78
Function: renderView

File: /home/u613989013/domains/fontawesomeicons.com/public_html/application/controllers/Icon.php
Line: 9
Function: getIconDetail

File: /home/u613989013/domains/fontawesomeicons.com/public_html/index.php
Line: 381
Function: require_once

Advertisements



Looking For More Icons?