Bootstrap Glyphicons


Bootstrap ships with more than 250 glyphicon fonts from the Glyphicons Halflings set. Glyphicons can be used with different Bootstrap component like buttons, navbars , lists etc.

There are some rules in order to use glyphicons, individual glyphicon class need to be used for a particular glyphicon within base class. Also remember that you must use <span> element to display glyphicon because it cannot directly add to the components.

Syntax

<span class="glyphicon glyphicon-*"></span>

Note: The * symbole in above syntax must be replaced with the name of the glyphicon name e.g. glyphicon-asterisk

<span class="glyphicon glyphicon-asterisk"></span>

Glyphicon Example

<div class="bootstrap-demo">
<div class="btn-toolbar" role="toolbar">
    <div class="btn-toolbar" role="toolbar">
	<h2>Glyphicon</h2>
      <p>Asterisk icon: <span class="glyphicon glyphicon-asterisk"></span></p>
      <p>Asterisk icon as a link:
        <a href="#">
          <span class="glyphicon glyphicon-asterisk"></span>
        </a>
      </p>
	  <button type="button" class="btn btn-danger btn-xs">
        <span class="glyphicon glyphicon-asterisk"></span> Asterisk</button></br></br>
		 <button type="button" class="btn btn-warning btn-sm">
        <span class="glyphicon glyphicon-envelope"></span> Envelope</button></br></br>
		<button type="button" class="btn btn-info">
        <span class="glyphicon glyphicon-search"></span> Search</button></br></br>
		<button type="button" class="btn btn-primary btn-lg">
        <span class="glyphicon glyphicon-download"></span> Download</button></br></br>
		
		<div class="alert alert-danger" role="alert">
		  <span class="glyphicon glyphicon-warning-sign" aria-hidden="true"></span>
		  <span class="sr-only">Error:</span>Enter a valid email address
		</div>
    </div>
  </div>
  </div>
Try Now

The above Glyphicon example will produce below output:

Bootstrap Glyphicons List

You can find below list of Bootstrap glyphicons for your reference.


See Also

AngularJS Built-in Filters
AngularJS Built-in Directives
AngularJS Expression
AngularJS Built-in Events
AngularJS Scope Methods
AngularJS Built-in Services
AngularJS Controller Inheritance
AngularJS Custom Directives



 
 
SHARE THIS IF YOU LIKE!
submit to reddit

SUBSCRIBE FOR LATEST UPDATES
HAVE WE CONNECTED ON FACEBOOK?
TOP TUTORIALSTOP CODE EXAMPLESTOP LIVE DEMOLINKSSTAY CONNECTED
HTML Tutorial
HTML5 Tutorial
Bootstrap3 Tutorial
Javascript Tutorial
TypeScript Tutorial
AngularJS Tutorial
CSharp Tutorial
PHP Tutorial
Developer Tools
Javascript
AngularJS
Google MAP API V3
ASP.NET
Javascript
AngularJS
Google MAP API V3
Contact Us
Advertise with Us
Privacy Policy
Disclaimer
Stay connected. We actually like you. If you want to get up to the minute updates, then connect with us on your fav below.
 
Twitter   Linkedin   Facebook   Google+    RSS   Pinterest
 
Protected by Copyscape Original Content Checker
 
 
Copyright ©2017 www.techstrikers.com Unauthorized reproduction/replication of any part of this site is prohibited.