Font Awesome Examples
Font Awesome Examples
Font Awesome Examples
Want to
add your
own icon?
Check out
Fonticons,
from the
maker of
Font
Awesome.
Basic Icons
fa-camera-retro
You can place Font Awesome icons just about anywhere using the CSS Prefix
<i> tag
the
<span> is
fa and
the icon's name. Font Awesome is designed to be used with inline elements (we like
If you change the font-size of the icon's container, the icon gets bigger. Same things goes for color, drop shadow, and anything else that gets inherited using CSS.
Larger Icons
fa-lg
fa-2x
fa-3x
fa-4x
fa-5x
or
fa-5x classes.
If your icons are getting chopped off on top and bottom, make sure you have sufficient line-height.
Home
Library
Applications
Settings
Use
fa-fw to
set icons at a fixed width. Great to use when different icon widths throw off alignment. Especially useful in things like nav lists & list groups.
<div class="list-group">
<a class="list-group-item" href="#"><i class="fa fa-home fa-fw"></i> Home</a>
<a class="list-group-item" href="#"><i class="fa fa-book fa-fw"></i> Library</a>
<a class="list-group-item" href="#"><i class="fa fa-pencil fa-fw"></i> Applications</a>
<a class="list-group-item" href="#"><i class="fa fa-cog fa-fw"></i> Settings</a>
</div>
List Icons
http://fortawesome.github.io/Font-Awesome/examples/
1/4
8/29/2015
List Icons
List icons
can be used
as bullets
in lists
Use
<ul class="fa-ul">
<li><i class="fa-li fa fa-check-square"></i>List icons</li>
<li><i class="fa-li fa fa-check-square"></i>can be used</li>
<li><i class="fa-li fa fa-spinner fa-spin"></i>as bullets</li>
<li><i class="fa-li fa fa-square"></i>in lists</li>
</ul>
the past.
Use
Animated Icons
Use the
fa-spin class
fa-pulse to
fa-spinner, fa-refresh,
and
fa-cog.
Some browsers on some platforms have issues with animated icons resulting in a jittery wobbling effect. See issue #671 (https://github.com/FortAwesome/Font-
normal
fa-rotate-90
fa-rotate-180
fa-rotate-270
fa-flip-horizontal
fa-flip-vertical
Stacked Icons
fa-twitter on fa-square-o
http://fortawesome.github.io/Font-Awesome/examples/
2/4
8/29/2015
fa-twitter on fa-square-o
fa-flag on fa-circle
fa-terminal on fa-square
fa-ban on fa-camera
fa-stack class
fa-stack-1x for
fa-stack-2x for
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.
Bootstrap 3 Examples
Settings
Delete
Font Awesome
Version 4.4.0
Email address
Password
User
Font Awesome
works great with the full range of Bootstrap components.
Edit
Delete
Ban
Make admin
http://fortawesome.github.io/Font-Awesome/examples/
3/4
8/29/2015
Custom CSS
Anything you can do with CSS font styles, you can do with Font Awesome.
http://fortawesome.github.io/Font-Awesome/examples/
4/4