You must add the Stylesheet to your header first to use any of the Font Awesome Icons. So copy the below stylesheet address and past it between your <HEAD> </HEAD> tags where you want to use Font Awesome icons.
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"> - OR -
After you have added the Font Awesome stylesheet you can now use the code below.
Font Awesome Unicode, depending on your HTML markup you may prefer to use the unicode value withing your CSS file.
= fa fa-warning fa-lg = Large Icon
= fa fa-warning fa-2x = 2x Larger
= fa fa-warning fa-3x = 3x Larger
= fa fa-warning fa-4x = 4x Larger
= fa fa-warning fa-5x = 5x Larger
Use the fa-spin class to get any icon to rotate, and use fa-pulse to have it rotate with 8 steps. Works well with fa-spinner, fa-refresh, and fa-cog.
= fa fa-warning fa-spin fa-lg fa-fw
= fa fa-warning fa-spin fa-2x fa-fw
= fa fa-warning fa-spin fa-3x fa-fw
= fa fa-warning fa-spin fa-4x fa-fw
= fa fa-warning fa-pulse fa-5x fa-fw
To arbitrarily rotate and flip icons, use the fa-rotate-* and fa-flip-* classes.
= fa fa-warning fa-rotate-90 fa-2x
= fa fa-warning fa-rotate-180 fa-3x
= fa fa-warning fa-rotate-270 fa-4x
= fa fa-warning fa-flip-horizontal fa-5x
= fa fa-warning fa-flip-vertical fa-5x
To stack multiple icons, use the fa-stack class on the parent, the fa-stack-1x for the regularly sized icon, and fa-stack-2x for the larger icon. fa-inverse can be used as an alternative icon color. You can even throw larger icon classes on the parent to get further control of sizing.
Example 1.1 Code:
Example 2.2 Code:
Example 3.3 Code:
Example 4.4 Code:
Just remember anything you can do with CSS font styles, you can do with Font Awesome and more. You can easily use font-size, font-weight, color and more.
Icon Version: 4.1
Date Approved: Oct 14, 2017
Viewed: 628 x
Last Viewed: May 23, 2020
The most stable fast but dirt cheap captcha recognition provider online!
Time and Date Calculator.A useful time and date calculator. Calculate how many days between dates. Use our free timezone calculator to find any dates.
A free to use stopwatch and timer with laps and notifications.
Use our free tools to calculate the percentage change and sales tax calculator