Glyphicons

Available glyphs

Includes 200 glyphs in font format from the Glyphicon Halflings set. Glyphicons Halflings are normally not available for free, but their creator has made them available for Bootstrap free of cost. As a thank you, we only ask that you include a link back to Glyphicons whenever possible.

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>.

Only for use on empty elements

Icon classes should only be used on elements that contain no text content and have no child elements.

Changing the icon font location

By default, Bootstrap assumes that the icon font files will be located in the ../fonts/ directory relative to your deployed CSS. For example, if your CSS file is at http://example.com/foobar/css/bootstrap.css, then your font files should be at http://example.com/foobar/fonts/glyphicons-halflings-regular.woff, etc.

If you are placing the icon font files elsewhere or changing their filenames, you will need to adjust the @icon-font-path and/or @icon-font-name Less variables accordingly.

@importing Bootstrap via Less may require adjusting the icon font location

If you @import Bootstrap's Less source into your own Less file, you may need to adjust the @icon-font-path Less variable due to the way that the relative paths in our url(...)s work.

{% highlight html %} {% endhighlight %}

Examples

Use them in buttons, button groups for a toolbar, navigation, or prepended form inputs.

{% highlight html %} {% endhighlight %}