Bahai font awesome icon Usage,CSS Class Name,SVG & CSS Content Code
Bahai
font awesome icon css class name is fa-bahai
and CSS Content Code is \f666
.
Bahai
font awesome icon is part of solid icons.
Bahai
font awesome icon usage
We can display Bahai
font awesome icon using 3 different ways depending upon our requirement.
Using CSS Class Name
Using CSS Content Code
Using SVG
Bahai
font awesome icon CSS class name
To display Bahai
font awesome icon, add predefined class name i.e.,fa-bahai
(with prefix fa-
) to the i
tag.
And we need to add corresponding font awesome icon style for the Bahai
icon.
Bahai
icon has 1 icon style i.e.,solid.
We need to append icon style class fas
.
<i class='fas fa-bahai'></i>
Output:
Bahai
font awesome icon CSS Content Code
We can display Bahai
font awesome icon using it’s CSS Content Code \f666
Use the following HTML code
<li><span class='Bahai fontawesomeicon'></span>Bahai</li>
Apply CSS code
<style>
.fontawesomeicon::before {
display: inline-block;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
}
.Bahai::before {
font: var(--fa-font-solid);
content: ' \f666';
}</style>
Output:
.fontawesomeicon::before { display: inline-block; text-rendering: auto; -webkit-font-smoothing: antialiased; } .Bahai::before { font: var(--fa-font-solid); content: ' \f666'; }For the detailed tutorial visit https://www.angularjswiki.com/fontawesome/csscontentcode/
Bahai
font awesome icon SVG
Use the following icon SVG to display Bahai
font awesome icon.
<svg class='fontawesomesvg' xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Free 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2022 Fonticons, Inc. --><path d="M288 0c14.5 0 27.2 9.7 30.9 23.8l23.9 89.6 75.9-53.3c11.9-8.3 27.8-7.6 39 1.7s14.6 24.9 8.4 38.1l-39.3 84 92.4 8c14.4 1.2 26.2 12 28.8 26.3s-4.9 28.5-18 34.6l-84.1 39.1 65.7 65.5c10.3 10.2 12.4 26.1 5.1 38.7s-22 18.7-36 14.9L391 386.8l8.2 92.4c1.3 14.4-7.3 27.9-20.9 32.9s-28.9 .1-37.2-11.7l-53.1-76-53.1 76c-8.3 11.9-23.6 16.7-37.2 11.7s-22.2-18.5-20.9-32.9l8.2-92.4L95.4 410.9c-14 3.8-28.8-2.3-36-14.9s-5.2-28.4 5.1-38.7l65.7-65.5L46 252.7c-13.1-6.1-20.5-20.3-18-34.6s14.3-25.1 28.8-26.3l92.4-8-39.3-84c-6.1-13.1-2.7-28.8 8.4-38.1s27.1-10 39-1.7l75.9 53.3 23.9-89.6C260.8 9.7 273.5 0 288 0zm0 156.2l-4.8 18c-2.7 10.1-10.2 18.2-20 21.8s-20.8 2.1-29.3-3.9l-15.2-10.7 7.9 16.8c4.4 9.5 4 20.5-1.3 29.6s-14.5 15-25 15.9l-18.5 1.6 16.8 7.8c9.5 4.4 16.2 13.2 18 23.5s-1.5 20.8-8.9 28.2l-13.2 13.1 17.9-4.8c10.1-2.7 20.9-.3 28.9 6.4s12.2 16.9 11.3 27.3l-1.6 18.5 10.6-15.2c6-8.6 15.8-13.7 26.2-13.7s20.2 5.1 26.2 13.7l10.6 15.2-1.6-18.5c-.9-10.4 3.3-20.6 11.3-27.3s18.8-9.1 28.9-6.4l17.9 4.8-13.2-13.1c-7.4-7.4-10.7-17.9-8.9-28.2s8.5-19.1 18-23.5l16.8-7.8-18.5-1.6c-10.4-.9-19.7-6.8-25-15.9s-5.7-20.1-1.3-29.6l7.9-16.8-15.2 10.7c-8.6 6-19.5 7.5-29.3 3.9s-17.3-11.7-20-21.8l-4.8-18z"/></svg>
Use the following HTML code
<p>This <svg class='fontawesomesvg' xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Free 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2022 Fonticons, Inc. --><path d="M288 0c14.5 0 27.2 9.7 30.9 23.8l23.9 89.6 75.9-53.3c11.9-8.3 27.8-7.6 39 1.7s14.6 24.9 8.4 38.1l-39.3 84 92.4 8c14.4 1.2 26.2 12 28.8 26.3s-4.9 28.5-18 34.6l-84.1 39.1 65.7 65.5c10.3 10.2 12.4 26.1 5.1 38.7s-22 18.7-36 14.9L391 386.8l8.2 92.4c1.3 14.4-7.3 27.9-20.9 32.9s-28.9 .1-37.2-11.7l-53.1-76-53.1 76c-8.3 11.9-23.6 16.7-37.2 11.7s-22.2-18.5-20.9-32.9l8.2-92.4L95.4 410.9c-14 3.8-28.8-2.3-36-14.9s-5.2-28.4 5.1-38.7l65.7-65.5L46 252.7c-13.1-6.1-20.5-20.3-18-34.6s14.3-25.1 28.8-26.3l92.4-8-39.3-84c-6.1-13.1-2.7-28.8 8.4-38.1s27.1-10 39-1.7l75.9 53.3 23.9-89.6C260.8 9.7 273.5 0 288 0zm0 156.2l-4.8 18c-2.7 10.1-10.2 18.2-20 21.8s-20.8 2.1-29.3-3.9l-15.2-10.7 7.9 16.8c4.4 9.5 4 20.5-1.3 29.6s-14.5 15-25 15.9l-18.5 1.6 16.8 7.8c9.5 4.4 16.2 13.2 18 23.5s-1.5 20.8-8.9 28.2l-13.2 13.1 17.9-4.8c10.1-2.7 20.9-.3 28.9 6.4s12.2 16.9 11.3 27.3l-1.6 18.5 10.6-15.2c6-8.6 15.8-13.7 26.2-13.7s20.2 5.1 26.2 13.7l10.6 15.2-1.6-18.5c-.9-10.4 3.3-20.6 11.3-27.3s18.8-9.1 28.9-6.4l17.9 4.8-13.2-13.1c-7.4-7.4-10.7-17.9-8.9-28.2s8.5-19.1 18-23.5l16.8-7.8-18.5-1.6c-10.4-.9-19.7-6.8-25-15.9s-5.7-20.1-1.3-29.6l7.9-16.8-15.2 10.7c-8.6 6-19.5 7.5-29.3 3.9s-17.3-11.7-20-21.8l-4.8-18z"/></svg>
Bahai displayed using SVG</p>
Apply CSS code
<style>
.fontawesomesvg {width: 1em;
height: 1em;
vertical-align: -.125em;
}
</style>
Output:
.fontawesomesvg {width: 1em; height: 1em; vertical-align: -.125em; }This Bahai displayed using SVG
Change Bahai
font awesome icon size
To increase Bahai
font awesome icon size, use the fa-lg(33 % increase)
, fa-2x
, fa-3x
, fa-4x
, or fa-5x
classes along with icon class \f666.
Increase in icon size will be relative to their parent container.
<i class='fas fa-bahai fa-lg'>fa-lg</i><br/>
<i class='fas fa-bahai fa-2x'>fa-2x</i><br/>
<i class='fas fa-bahai fa-3x'>fa-3x</i><br/>
<i class='fas fa-bahai fa-4x'>fa-4x</i><br/>
<i class='fas fa-bahai fa-5x'>fa-5x</i><br/>
Output:
fa-lgfa-2x
fa-3x
fa-4x
fa-5x
Bahai
font awesome icon with Fixed Width
All the font awesome icons does not have same width.
For example Bahai
icon and home
icon may not have same height and width.
So to display two icons with fixed width and height we can use fa-fw
class.
<i style='border:1px solid;' class='fas fa-bahai fa-fw fa-3x'></i>Fixed Width<i style='border:1px solid;' class='fas fa-bahai fa-3x'></i>Normal<br/>
<i style='border:1px solid;' class='fas fa-home fa-fw fa-3x'></i>Fixed Width<i style='border:1px solid;' class='fas fa-home fa-3x'></i>Normal<br/>
Output:
Fixed WidthNormalFixed WidthNormal
Bahai
font awesome icon Border
To add border to Bahai
font awesome icon, use fa-border
class.
<i class='fas fa-bahai fa-border fa-3x'></i>
Output:
Pull Bahai
font awesome icon To the left
To pull Bahai
icon to the left of the container use fa-pull-left
class.
<div style='width: 200px;'>
<i class='fas fa-bahai fa-pull-left fa-3x'></i>
... The text after Bahai Icon will be displayed on the right side of the icon.
</div>
<div style = 'clear: both;'></div>
Output:
Pull Bahai
font awesome icon To the left
To pull Bahai
icon to the right of the container use fa-pull-right
class.
<div style='width: 200px;'>
<i class='fas fa-bahai fa-pull-right fa-3x'></i>
... The text after Bahai Icon will be displayed on the left side of the icon.
</div>
<div style = 'clear: both;'></div>
Output:
Animate Bahai
font awesome icon
To animate Bahai
font awesome icon, use fa-spin
class.
<i class='fas fa-bahai fa-spin fa-3x'></i>
Output:
Animate Bahai
font awesome icon with steps
While animating the font awesome icon,We can rotate Bahai
icon in 8 steps instead of uniform rotation.
We can use fa-pulse
icon along with fa-spin
class.
<i class='fas fa-bahai fa-spin fa-pulse fa-3x'></i>
Output:
Rotate Bahai
font awesome icon
To rotate Bahai
font awesome icon, Use fa-rotate-x
class
Where ‘x’ represents degree of rotation.
<div>
<i class='fas fa-bahai fa-3x'>R</i>normal<br/><br/>
<i class='fas fa-bahai fa-rotate-90 fa-3x'>R</i> fa-rotate-90<br/><br/>
<i class='fas fa-bahai fa-rotate-180 fa-3x'>R</i> fa-rotate-180<br/><br/>
<i class='fas fa-bahai fa-rotate-270 fa-3x'>R</i> fa-rotate-270<br/><br/>
</div>
Output:
R fa-rotate-90
R fa-rotate-180
R fa-rotate-270
Flip Bahai
font awesome icon
To flip Bahai
font awesome icon horizontally and vertically use fa-flip-horizontal
and fa-flip-vertical
classes.
<div>
<i class='fas fa-bahai fa-3x'>F</i> Normal <br>
<i class='fas fa-bahai fa-flip-horizontal fa-3x'>F</i> fa-flip-horizontal<br>
<i class='fas fa-bahai fa-flip-vertical fa-3x'>F</i> fa-flip-vertical<br>
</div>
Output:
F fa-flip-horizontal
F fa-flip-vertical
Combine Bahai
font awesome icon with other font awesome icons
In font awesome icons,using stacking we can combine multiple icons and display it as one icon.
To do that 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.
And use class fa-inverse
for an alternative icon color.
In the below example, I am displaying Bahai
font awesome icon on top of icons like fa-square
,fa-circle
and fa-ban
.
And used fa-inverse
in the second example to invert the color of the icon.
<div>
<span class='fa-stack fa-lg'>
<i class='far fa-square fa-stack-2x'></i>
<i class='fas fa-bahai fa-stack-1x'></i>
</span>
Bahai on fa-square<br>
<span class='fa-stack fa-lg'>
<i class='fas fa-circle fa-stack-2x'></i>
<i class='fas fa-bahai fa-stack-1x fa-inverse'></i>
</span>
Bahai on fa-circle<br>
<span class='fa-stack fa-lg'>
<i class='fas fa-bahai fa-stack-1x'></i>
<i class='fas fa-ban fa-stack-2x'></i>
</span>
Bahai on fa-ban
</div>
Output:
Bahai on fa-circle
Bahai on fa-ban