Font icons are a set of symbols converted into a font file, which is vector-based, so it easily scales to any size while remaining clear and crisp. They can be styled like fonts (size, color, hover) and they load faster than images.
Includes 200 glyphs in font format from the Glyphicon Halflings set.
How to use
For performance reasons, all icons require a base class and individual icon class. To use, place the following code just about anywhere. Be sure to leave a space between the icon and text for proper padding.
Don’t mix with other components
Icon classes cannot be directly combined with other components. They should not be used along with other classes on the same element. Instead, add a nested
<span> and apply the icon classes to the
<span class="glyphicon glyphicon-search"></span>
Always accompany icons with text so your intent is understood by all visitors, including those using a screen reader.
Use them in buttons, button groups for a toolbar, navigation, or prepended form inputs.
<button type="button" class="btn btn-default btn-lg"> <span class="glyphicon glyphicon-star"></span> Star </button>