Skip navigation

CSS

Global CSS settings, fundamental HTML elements styled and enhanced with extensible classes, and an advanced grid system.

Looking for Bootstrap 2.3.2 docs? We've moved it to a new home while we push forward with Bootstrap 3. Read the blog for details.

Typography

Headings

All HTML headings, <h1> through <h6> are available.

h1. Heading 1

h2. Heading 2

h3. Heading 3

h4. Heading 4

h5. Heading 5
h6. Heading 6

Body copy

Bootstrap's global default font-size is 14px, with a line-height of 20px. This is applied to the <body> and all paragraphs. In addition, <p> (paragraphs) receive a bottom margin of half their line-height (10px by default).

Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula.

Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec ullamcorper nulla non metus auctor fringilla. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec ullamcorper nulla non metus auctor fringilla.

Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.

<p>...</p>

Lead body copy

Make a paragraph stand out by adding .lead.

Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.

<p class="lead">...</p>

Built with Less

The typographic scale is based on two LESS variables in variables.less: @baseFontSize and @baseLineHeight. The first is the base font-size used throughout and the second is the base line-height. We use those variables and some simple math to create the margins, paddings, and line-heights of all our type and more. Customize them and Bootstrap adapts.


Emphasis

Make use of HTML's default emphasis tags with lightweight styles.

<small>

For de-emphasizing inline or blocks of text, use the small tag.

This line of text is meant to be treated as fine print.

<p>
  <small>This line of text is meant to be treated as fine print.</small>
</p>

Bold

For emphasizing a snippet of text with a heavier font-weight.

The following snippet of text is rendered as bold text.

<strong>rendered as bold text</strong>

Italics

For emphasizing a snippet of text with italics.

The following snippet of text is rendered as italicized text.

<em>rendered as italicized text</em>

Heads up! Feel free to use <b> and <i> in HTML5. <b> is meant to highlight words or phrases without conveying additional importance while <i> is mostly for voice, technical terms, etc.

Emphasis classes

Convey meaning through color with a handful of emphasis utility classes.

Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.

Etiam porta sem malesuada magna mollis euismod.

Donec ullamcorper nulla non metus auctor fringilla.

Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis.

Duis mollis, est non commodo luctus, nisi erat porttitor ligula.

<p class="text-muted">Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.</p>
<p class="text-warning">Etiam porta sem malesuada magna mollis euismod.</p>
<p class="text-error">Donec ullamcorper nulla non metus auctor fringilla.</p>
<p class="text-info">Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis.</p>
<p class="text-success">Duis mollis, est non commodo luctus, nisi erat porttitor ligula.</p>

Abbreviations

Stylized implemenation of HTML's <abbr> element for abbreviations and acronyms to show the expanded version on hover. Abbreviations with a title attribute have a light dotted bottom border and a help cursor on hover, providing additional context on hover.

<abbr>

For expanded text on long hover of an abbreviation, include the title attribute.

An abbreviation of the word attribute is attr.

<abbr title="attribute">attr</abbr>

<abbr class="initialism">

Add .initialism to an abbreviation for a slightly smaller font-size.

HTML is the best thing since sliced bread.

<abbr title="HyperText Markup Language" class="initialism">HTML</abbr>

Addresses

Present contact information for the nearest ancestor or the entire body of work.

<address>

Preserve formatting by ending all lines with <br>.

Twitter, Inc.
795 Folsom Ave, Suite 600
San Francisco, CA 94107
P: (123) 456-7890
Full Name
first.last@gmail.com
<address>
  <strong>Twitter, Inc.</strong><br>
  795 Folsom Ave, Suite 600<br>
  San Francisco, CA 94107<br>
  <abbr title="Phone">P:</abbr> (123) 456-7890
</address>

<address>
  <strong>Full Name</strong><br>
  <a href="mailto:#">first.last@gmail.com</a>
</address>

Blockquotes

For quoting blocks of content from another source within your document.

Default blockquote

Wrap <blockquote> around any HTML as the quote. For straight quotes we recommend a <p>.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

<blockquote class="blockquote">
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
</blockquote>

Blockquote options

Style and content changes for simple variations on a standard blockquote.

Naming a source

Add <small> tag for identifying the source. Wrap the name of the source work in <cite>.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

Someone famous in Source Title
<blockquote class="blockquote">
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
  <small>Someone famous <cite title="Source Title">Source Title</cite></small>
</blockquote>

Alternate displays

Use .pull-right for a floated, right-aligned blockquote.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

Someone famous in Source Title
<blockquote class="blockquote pull-right">
  ...
</blockquote>

Lists

Unordered

A list of items in which the order does not explicitly matter.

  • Lorem ipsum dolor sit amet
  • Consectetur adipiscing elit
  • Integer molestie lorem at massa
  • Facilisis in pretium nisl aliquet
  • Nulla volutpat aliquam velit
    • Phasellus iaculis neque
    • Purus sodales ultricies
    • Vestibulum laoreet porttitor sem
    • Ac tristique libero volutpat at
  • Faucibus porta lacus fringilla vel
  • Aenean sit amet erat nunc
  • Eget porttitor lorem
<ul>
  <li>...</li>
</ul>

Ordered

A list of items in which the order does explicitly matter.

  1. Lorem ipsum dolor sit amet
  2. Consectetur adipiscing elit
  3. Integer molestie lorem at massa
  4. Facilisis in pretium nisl aliquet
  5. Nulla volutpat aliquam velit
  6. Faucibus porta lacus fringilla vel
  7. Aenean sit amet erat nunc
  8. Eget porttitor lorem
<ol>
  <li>...</li>
</ol>

Unstyled

A list of items with no list-style or additional left padding.

  • Lorem ipsum dolor sit amet
  • Consectetur adipiscing elit
  • Integer molestie lorem at massa
  • Facilisis in pretium nisl aliquet
  • Nulla volutpat aliquam velit
    • Phasellus iaculis neque
    • Purus sodales ultricies
    • Vestibulum laoreet porttitor sem
    • Ac tristique libero volutpat at
  • Faucibus porta lacus fringilla vel
  • Aenean sit amet erat nunc
  • Eget porttitor lorem
<ul class="list-unstyled">
  <li>...</li>
</ul>

Inline

Remove a list’s bullets and apply some light margin with a combination of two classes, .list-inline and .list-inline-item.

  • Lorem ipsum
  • Phasellus iaculis
  • Nulla volutpat
<ul class="list-inline">
    <li class="list-inline-item">Lorem ipsum</li>
    <li class="list-inline-item">Phasellus iaculis</li>
    <li class="list-inline-item">Nulla volutpat</li>
</ul>

Description

A list of terms with their associated descriptions.

Description lists
A description list is perfect for defining terms.
Euismod
Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.
Donec id elit non mi porta gravida at eget metus.
Malesuada porta
Etiam porta sem malesuada magna mollis euismod.
<dl>
  <dt>...</dt>
  <dd>...</dd>
</dl>

Horizontal description

Make terms and descriptions in <dl> line up side-by-side.

Description lists
A description list is perfect for defining terms.
Euismod

Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.

Donec id elit non mi porta gravida at eget metus.

Malesuada porta
Etiam porta sem malesuada magna mollis euismod.
Felis euismod semper eget lacinia
Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
<dl class="row">
  <dt class="col-sm-3" >...</dt>
  <dd class="col-sm-9" >...</dd>
</dl>

Heads up! Horizontal description lists will truncate terms that are too long to fit in the left column fix text-overflow. In narrower viewports, they will change to the default stacked layout.

Code

Inline

Wrap inline snippets of code with <code>.

For example, <section> should be wrapped as inline.
For example, <code><section></code> should be wrapped as inline.

Basic block

Use <pre> for multiple lines of code. Be sure to escape any angle brackets in the code for proper rendering.

<p>Sample text here...</p>
<pre>
  &lt;p&gt;Sample text here...&lt;/p&gt;
</pre>

Heads up! Be sure to keep code within <pre> tags as close to the left as possible; it will render all tabs.

You may optionally add the .pre-scrollable class which will set a max-height of 350px and provide a y-axis scrollbar.

Tables

Default styles

For basic styling—light padding and only horizontal dividers—add the base class .table to any <table>.

# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter
<table class="table">
  ...
</table>

Optional classes

Add any of the following classes to the .table base class.

.table-striped

Adds zebra-striping to any table row within the <tbody> via the :nth-child CSS selector (not available in IE7-IE8).

# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter
<table class="table table-striped">
  ...
</table>

.table-bordered

Add borders and rounded corners to the table.

# First Name Last Name Username
1 Mark Otto @mdo
Mark Otto @TwBootstrap
2 Jacob Thornton @fat
3 Larry the Bird @twitter
<table class="table table-bordered">
  ...
</table>

.table-hover

Enable a hover state on table rows within a <tbody>.

# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter
<table class="table table-hover">
  ...
</table>

.table-sm

Makes tables more compact by cutting cell padding in half.

# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter
<table class="table table-sm">
  ...
</table>

.table-dark

Uses dark colors for rows and columns.

# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter
    <table class="table table-dark">
      ...
    </table>

Optional row classes

Use contextual classes to color table rows.

Class Heading Heading
table-active Cell Cell
table-primary Cell Cell
table-secondary Cell Cell
table-info Cell Cell
table-success Cell Cell
table-warning Cell Cell
table-danger Cell Cell
table-light Cell Cell
table-dark Cell Cell
# Product Payment Taken Status
1 TB - Monthly 01/04/2012 In Stock
1 TB - Monthly 02/04/2012 Approved
2 TB - Monthly 03/04/2012 Declined
3 TB - Monthly 04/04/2012 Pending
4 TB - Monthly 05/04/2012 Call in to confirm
...
  <tr class="table-success">
    <td>1</td>
    <td>TB - Monthly</td>
    <td>01/04/2012</td>
    <td>Approved</td>
  </tr>
...

Supported table markup

List of supported table HTML elements and how they should be used.

Tag Description
<table> Wrapping element for displaying data in a tabular format
<thead> Container element for table header rows (<tr>) to label table columns
<tbody> Container element for table rows (<tr>) in the body of the table
<tr> Container element for a set of table cells (<td> or <th>) that appears on a single row
<td> Default table cell
<th> Special table cell for column (or row, depending on scope and placement) labels
Must be used within a <thead>
<caption> Description or summary of what the table holds, especially useful for screen readers
<table>
  <caption>...</caption>
  <thead>
    <tr>
      <th>...</th>
      <th>...</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>...</td>
      <td>...</td>
    </tr>
  </tbody>
</table>

Forms

Default styles

Individual form controls receive styling, but without any required base class on the <form> or large changes in markup. Results in stacked, left-aligned labels on top of form controls.

Legend Example block-level help text here.
<form>
  <fieldset>
    <legend>Legend</legend>
    <label class="col-form-label">Label name</label>
    <input type="text" class="form-control" placeholder="Type something...">
    <span class="form-text">Example block-level help text here.</span>
    <div class="form-check">
        <input type="checkbox" class="form-check-input">
        <label class="col-form-label">Check me out</label>
    </div>
    <div class="form-check">
        <input type="radio" class="form-check-input">
        <label class="col-form-label">Radio One</label>
    </div>
    <div class="form-check">
        <input type="radio" class="form-check-input">
        <label class="col-form-label">Radio Two</label>
    </div>
    <button type="submit" class="btn">Submit</button>
  </fieldset>
</form>

Optional layouts

Included with Bootstrap are three optional form layouts for common use cases.

Inline form

Add .form-inline for left-aligned labels and inline-block controls for a compact layout.

<form class="form-inline">
  <div class="form-group">
      <input type="text" class="form-control input-sm" placeholder="Email">
      <input type="password" class="form-control input-sm" placeholder="Password">
      <div class="form-check">
          <input type="checkbox" class="form-check-input" >
          <label class="form-check-label"> Remember me </label>
      </div>
      <button type="submit" class="btn">Sign in</button>
  </div>
</form>

Horizontal form

Right align labels and float them to the left to make them appear on the same line as controls. Requires the most markup changes from a default form:

  • Add .form-horizontal to the form
  • Wrap labels and controls in .form-group
  • Add .control-label to the label
  • Wrap any associated controls in .controls for proper alignment
<form>
  <div class="form-group row">
    <label class="col-form-label col-sm-2" for="inputEmail">Email</label>
    <div class="col-sm-10">
        <input type="text" class="form-control" id="inputEmail" placeholder="Email">
    </div>
  </div>
  <div class="form-group row">
    <label class="col-form-label col-sm-2" for="inputPassword">Password</label>
    <div class="col-sm-10">
        <input type="password" class="form-control" id="inputPassword" placeholder="Password">
    </div>
  </div>
  <div class="form-group row">
    <div class="col-sm-10">
        <div class="form-check">
            <input type="checkbox" class="form-check-input" >
            <label class="form-check-label"> Remember me </label>
        </div>
    </div>
  </div>
  <div class="form-group row">
    <button type="submit" class="btn">Sign in</button>
  </div>
</form>

Supported form controls

Examples of standard form controls supported in an example form layout.

Inputs

Most common form control, text-based input fields. Includes support for all HTML5 types: text, password, datetime, datetime-local, date, month, time, week, number, email, url, search, tel, and color.

Requires the use of a specified type at all times.

<input type="text" class="form-control" placeholder="Text input">

Textarea

Form control which supports multiple lines of text. Change rows attribute as necessary.

<textarea class="form-control" rows="3"></textarea>

Checkboxes and radios

Checkboxes are for selecting one or several options in a list while radios are for selecting one option from many.

Default (stacked)

<div class="form-check">
    <input type="checkbox" value="" class="form-check-input">
    <label class="form-check-label">
        Option one is this and that—be sure to include why it's great
    </label>
</div>
<div class="form-check">
    <input class="form-check-input" type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
    <label class="form-check-label">
        Option one is this and that—be sure to include why it's great
    </label>
</div>
<div  class="form-check">
    <input class="form-check-input" type="radio" name="optionsRadios" id="optionsRadios2" value="option2" >
    <label class="form-check-label">
        Option two can be something else and selecting it will deselect option one
    </label>
</div>

Inline checkboxes

Add the .inline class to a series of checkboxes or radios for controls appear on the same line.

<div class="form-check form-check-inline">
    <label class="form-check-label">
      <input type="checkbox" id="inlineCheckbox1" value="option1" class="form-check-input"> 1
    </label>
</div>
    <div class="form-check form-check-inline">
    <label class="form-check-label">
      <input type="checkbox" id="inlineCheckbox2" value="option2" class="form-check-input"> 2
    </label>
<div class="form-check form-check-inline">
    <label class="form-check-label">
      <input type="checkbox" id="inlineCheckbox3" value="option3" class="form-check-input"> 3
    </label>
</div>

Selects

Use the default option or specify a multiple="multiple" to show multiple options at once.


<select>
  <option>1</option>
  <option>2</option>
  <option>3</option>
  <option>4</option>
  <option>5</option>
</select>

<select multiple="multiple">
  <option>1</option>
  <option>2</option>
  <option>3</option>
  <option>4</option>
  <option>5</option>
</select>

Extending form controls

Adding on top of existing browser controls, Bootstrap includes other useful form components.

Prepended and appended inputs

Add text or buttons before or after any text-based input. Do note that select elements are not supported here.

Default options

Wrap an .add-on and an input with one of two classes to prepend or append text to an input.

@

.00
<div class="form-group">
    <div class="input-group">
        <span class="input-group-prepend">
            <span class="input-group-text">@</span>
        </span>
        <input class="form-control" id="prependedInput" type="text" placeholder="Username">
    </div>
    <div class="input-group">
        <input class="form-control" id="appendedInput" type="text">
        <span class="input-group-append">
            <span class="input-group-text">.00</span>
        </span>
    </div>
</div>

Combined

Use both classes and two instances of .add-on to prepend and append an input.

$ .00
<div class="form-group">
    <div class="input-group">
        <span class="input-group-prepend">
            <span class="input-group-text">$</span>
        </span><span class="input-group-prepend">$</span>
        <input class="form-control" id="appendedPrependedInput" type="text">
        <span class="input-group-append">
            <span class="input-group-text">.00</span>
        </span>
    </div>
</div>

Buttons instead of text

Instead of a <span> with text, use a .btn to attach a button (or two) to an input.

<div class="form-group">
    <div class="input-group">
        <input class="form-control" id="appendedInputButton" type="text"/>
        <span class="input-group-append">
            <button class="btn" type="button">Go!</button>
        </span>
    </div>
</div>
<div class="form-group">
    <div class="input-group">
        <input class="form-control" id="appendedInputButtons" type="text">
        <span class="input-group-append">
            <button class="btn" type="button">Search</button>
        </span>
    </div>
</div>

Button dropdowns

<div class="form-group">
    <div class="input-group">
        <input class="form-control" id="appendedDropdownButton" type="text">

        <div class="input-group-append">
            <button class="btn dropdown-toggle" data-toggle="dropdown">Action <span class="caret"></span></button>
            <div class="dropdown-menu">
                <a class="dropdown-item" href="#">Action</a></li>
                <a class="dropdown-item" href="#">Another action</a></li>
                <a class="dropdown-item" href="#">Something else here</a></li>
                <div class="dropdown-divider" role="separator"></div>
                <a class="dropdown-item" href="#">Separated link</a>
            </div>
        </div>
    </div>
</div>
<div class="form-group">
    <div class="input-group">
        <div class="input-group-prepend">
            <button class="btn dropdown-toggle" data-toggle="dropdown">Action <span class="caret"></span></button>
            <div class="dropdown-menu">
                <a class="dropdown-item" href="#">Action</a></li>
                <a class="dropdown-item" href="#">Another action</a></li>
                <a class="dropdown-item" href="#">Something else here</a></li>
                <div class="divider" role="separator"></div>
                <a class="dropdown-item" href="#">Separated link</a></li>
            </div>
        </div>
        <input class="form-control" id="prependedDropdownButton" type="text">
    </div>
</div>
<div class="form-group">
    <div class="input-group">
        <div class="input-group-prepend">
            <button class="btn dropdown-toggle" data-toggle="dropdown">Action <span class="caret"></span></button>
            <div class="dropdown-menu">
                <a class="dropdown-item" href="#">Action</a></li>
                <a class="dropdown-item" href="#">Another action</a></li>
                <a class="dropdown-item" href="#">Something else here</a></li>
                <div class="divider" role="separator"></div>
                <a class="dropdown-item" href="#">Separated link</a></li>
            </div>
        </div>

        <input class="form-control" id="appendedPrependedDropdownButton" type="text">

        <div class="input-group-append">
            <button class="btn dropdown-toggle" data-toggle="dropdown">Action <span class="caret"></span></button>
            <div class="dropdown-menu">
                <a class="dropdown-item" href="#">Action</a></li>
                <a class="dropdown-item" href="#">Another action</a></li>
                <a class="dropdown-item" href="#">Something else here</a></li>
                <div class="dropdown-divider" role="separator"></div>
                <a class="dropdown-item" href="#">Separated link</a>
            </div>
        </div>
    </div>
</div>

Control sizing

Use relative sizing classes like .input-large or match your inputs to the grid column sizes using .span* classes.

Block level inputs

Make any <input> or <textarea> element behave like a block level element.

<input class="form-control input-block-level" type="text" placeholder=".input-block-level">

Relative sizing

<div class="form-group">
    <div class="controls docs-input-sizes">
        <input class="form-control input-sm" type="text" placeholder=".input-small">
        <input class="form-control" type="text" placeholder="default">
        <input class="form-control input-lg" type="text" placeholder=".input-large">
        <select class="form-control input-xs">
            <option>.input-sm</option>
        </select>
        <select class="form-control">
            <option>Default</option>
        </select>
        <select class="form-control input-lg">
            <option>.input-lg</option>
        </select>
    </div>
</div>

Help text

Block level support for help text that appears around form controls.

Block help

A longer block of help text that breaks onto a new line and may extend beyond one line.
<input type="text" class="form-control" ><span class="help-block">A longer block of help text that breaks onto a new line and may extend beyond one line.</span>

Form control states

Provide feedback to users or visitors with basic feedback states on form controls and labels.

Input focus

We remove the default outline styles on some form controls and apply a box-shadow in its place for :focus.

<input class="form-control input-lg" id="focusedInput" type="text" value="This is focused...">

Disabled inputs

Add the disabled attribute on an input to prevent user input and trigger a slightly different look.

<input class="form-control input-lg" id="disabledInput" type="text" placeholder="Disabled input here..." disabled>

Validation states

Bootstrap includes validation styles for error, warning, info, and success messages. To use, add the appropriate class to the surrounding .form-group.

Something may have gone wrong
Please correct the error
Woohoo!
<div class="form-group">
    <div class="has-warning">
        <label class="control-label" for="inputWarning">Input with warning</label>

        <div class="controls">
            <input type="text" class="form-control" id="inputWarning">
            <span class="help-block">Something may have gone wrong</span>
        </div>
    </div>
    <div class="has-error">
        <label class="control-label" for="inputError">Input with error</label>

        <div class="controls">
            <input type="text" class="form-control" id="inputError">
            <span class="help-block">Please correct the error</span>
        </div>
    </div>
    <div class="has-success">
        <label class="control-label" for="inputSuccess">Input with success</label>

        <div class="controls">
            <input type="text" class="form-control" id="inputSuccess">
            <span class="help-block">Woohoo!</span>
        </div>
    </div>
</div>

Buttons

Default buttons

Button styles can be applied to anything with the .btn class applied. However, typically you'll want to apply these to only <a> and <button> elements for the best rendering.

Button class="" Description
btn Standard gray button with gradient
btn btn-primary Provides extra visual weight and identifies the primary action in a set of buttons
btn btn-info Used as an alternative to the default styles
btn btn-success Indicates a successful or positive action
btn btn-warning Indicates caution should be taken with this action
btn btn-danger Indicates a dangerous or potentially negative action
btn btn-inverse Alternate dark gray button, not tied to a semantic action or use
btn btn-link Deemphasize a button by making it look like a link while maintaining button behavior

Cross browser compatibility

IE9 doesn't crop background gradients on rounded corners, so we remove it. Related, IE9 jankifies disabled button elements, rendering text gray with a nasty text-shadow that we cannot fix.

Button sizes

Fancy larger or smaller buttons? Add .btn-lg, .btn-sm, or .btn-xs for additional sizes.

<p>
  <button class="btn btn-lg btn-primary" type="button">Large button</button>
  <button class="btn btn-lg" type="button">Large button</button>
</p>
<p>
  <button class="btn btn-primary" type="button">Default button</button>
  <button class="btn" type="button">Default button</button>
</p>
<p>
  <button class="btn btn-sm btn-primary" type="button">Small button</button>
  <button class="btn btn-sm" type="button">Small button</button>
</p>
<p>
  <button class="btn btn-xs btn-primary" type="button">Mini button</button>
  <button class="btn btn-xs" type="button">Mini button</button>
</p>

Create block level buttons—those that span the full width of a parent— by adding .btn-block.

<button class="btn btn-lg btn-block btn-primary" type="button">Block level button</button>
<button class="btn btn-lg btn-block" type="button">Block level button</button>

Disabled state

Make buttons look unclickable by fading them back 50%.

Anchor element

Add the .disabled class to <a> buttons.

Primary link Link

<a href="#" class="btn btn-lg btn-primary" disabled="disabled">Primary link</a>
<a href="#" class="btn btn-lg" disabled="disabled">Link</a>

Heads up! We use .disabled as a utility class here, similar to the common .active class, so no prefix is required. Also, this class is only for aesthetic; you must use custom JavaScript to disable links here.

Button element

Add the disabled attribute to <button> buttons.

<button type="button" class="btn btn-lg btn-primary" disabled="disabled">Primary button</button>
<button type="button" class="btn btn-lg"  disabled="disabled">Button</button>

One class, multiple tags

Use the .btn class on an <a>, <button>, or <input> element.

Link
<a class="btn" href="">Link</a>
<button class="btn" type="submit">Button</button>
<input class="btn" type="button" value="Input">
<input class="btn" type="submit" value="Submit">

As a best practice, try to match the element for your context to ensure matching cross-browser rendering. If you have an input, use an <input type="submit"> for your button.

Images

Add classes to an <img> element to easily style images in any project.

<img src="..." class="rounded">
<img src="..." class="rounded-circle">
<img src="..." class="img-thumbnail">

Heads up! .rounded and .rounded-circle do not work in IE7-8 due to lack of border-radius support.

Icons by Font Awesome

Icon glyphs

Icons in sprite form, available in dark gray (default) and white, provided by Font Awesome.

  • fa fa-address-book fa-fw
  • fa fa-address-book-o fa-fw
  • fa fa-address-card fa-fw
  • fa fa-address-card-o fa-fw
  • fa fa-adjust fa-fw
  • fa fa-adn fa-fw
  • fa fa-align-center fa-fw
  • fa fa-align-justify fa-fw
  • fa fa-align-left fa-fw
  • fa fa-align-right fa-fw
  • fa fa-amazon fa-fw
  • fa fa-ambulance fa-fw
  • fa fa-american-sign-language-interpreting fa-fw
  • fa fa-anchor fa-fw
  • fa fa-android fa-fw
  • fa fa-angellist fa-fw
  • fa fa-angle-double-down fa-fw
  • fa fa-angle-double-left fa-fw
  • fa fa-angle-double-right fa-fw
  • fa fa-angle-double-up fa-fw
  • fa fa-angle-down fa-fw
  • fa fa-angle-left fa-fw
  • fa fa-angle-right fa-fw
  • fa fa-angle-up fa-fw
  • fa fa-apple fa-fw
  • fa fa-area-chart fa-fw
  • fa fa-archive fa-fw
  • fa fa-arrow-circle-down fa-fw
  • fa fa-arrow-circle-left fa-fw
  • fa fa-arrow-circle-o-down fa-fw
  • fa fa-arrow-circle-o-left fa-fw
  • fa fa-arrow-circle-o-right fa-fw
  • fa fa-arrow-circle-o-up fa-fw
  • fa fa-arrow-circle-right fa-fw
  • fa fa-arrow-circle-up fa-fw
  • fa fa-arrow-down fa-fw
  • fa fa-arrow-left fa-fw
  • fa fa-arrow-right fa-fw
  • fa fa-arrow-up fa-fw
  • fa fa-arrows fa-fw
  • fa fa-arrows-alt fa-fw
  • fa fa-arrows-h fa-fw
  • fa fa-arrows-v fa-fw
  • fa fa-assistive-listening-systems fa-fw
  • fa fa-asterisk fa-fw
  • fa fa-at fa-fw
  • fa fa-audio-description fa-fw
  • fa fa-backward fa-fw
  • fa fa-balance-scale fa-fw
  • fa fa-ban fa-fw
  • fa fa-bar-chart-o fa-fw
  • fa fa-barcode fa-fw
  • fa fa-bars fa-fw
  • fa fa-bandcamp fa-fw
  • fa fa-bath fa-fw
  • fa fa-battery-empty fa-fw
  • fa fa-battery-full fa-fw
  • fa fa-battery-half fa-fw
  • fa fa-battery-quarter fa-fw
  • fa fa-battery-three-quarters fa-fw
  • fa fa-bed fa-fw
  • fa fa-beer fa-fw
  • fa fa-behance fa-fw
  • fa fa-behance-square fa-fw
  • fa fa-bell fa-fw
  • fa fa-bell-o fa-fw
  • fa fa-bell-slash fa-fw
  • fa fa-bell-slash-o fa-fw
  • fa fa-bicycle fa-fw
  • fa fa-binoculars fa-fw
  • fa fa-birthday-cake fa-fw
  • fa fa-bitbucket fa-fw
  • fa fa-bitbucket-square fa-fw
  • fa fa-black-tie fa-fw
  • fa fa-blind fa-fw
  • fa fa-bluetooth fa-fw
  • fa fa-bluetooth-b fa-fw
  • fa fa-bold fa-fw
  • fa fa-bolt fa-fw
  • fa fa-bomb fa-fw
  • fa fa-book fa-fw
  • fa fa-bookmark fa-fw
  • fa fa-bookmark-o fa-fw
  • fa fa-braille fa-fw
  • fa fa-briefcase fa-fw
  • fa fa-btc fa-fw
  • fa fa-bug fa-fw
  • fa fa-building fa-fw
  • fa fa-building-o fa-fw
  • fa fa-bullhorn fa-fw
  • fa fa-bullseye fa-fw
  • fa fa-bus fa-fw
  • fa fa-buysellads fa-fw
  • fa fa-calculator fa-fw
  • fa fa-calendar fa-fw
  • fa fa-calendar-check-o fa-fw
  • fa fa-calendar-minus-o fa-fw
  • fa fa-calendar-o fa-fw
  • fa fa-calendar-plus-o fa-fw
  • fa fa-calendar-times-o fa-fw
  • fa fa-camera fa-fw
  • fa fa-camera-retro fa-fw
  • fa fa-car fa-fw
  • fa fa-caret-down fa-fw
  • fa fa-caret-left fa-fw
  • fa fa-caret-right fa-fw
  • fa fa-caret-square-o-down fa-fw
  • fa fa-caret-square-o-left fa-fw
  • fa fa-caret-square-o-right fa-fw
  • fa fa-caret-square-o-up fa-fw
  • fa fa-caret-up fa-fw
  • fa fa-cart-arrow-down fa-fw
  • fa fa-cart-plus fa-fw
  • fa fa-cc fa-fw
  • fa fa-cc-amex fa-fw
  • fa fa-cc-diners-club fa-fw
  • fa fa-cc-discover fa-fw
  • fa fa-cc-jcb fa-fw
  • fa fa-cc-mastercard fa-fw
  • fa fa-cc-paypal fa-fw
  • fa fa-cc-stripe fa-fw
  • fa fa-cc-visa fa-fw
  • fa fa-certificate fa-fw
  • fa fa-chain fa-fw
  • fa fa-chain-broken fa-fw
  • fa fa-check fa-fw
  • fa fa-check-circle fa-fw
  • fa fa-check-circle-o fa-fw
  • fa fa-check-minus-square fa-fw
  • fa fa-check-minus-square-o fa-fw
  • fa fa-check-square fa-fw
  • fa fa-check-square-o fa-fw
  • fa fa-check-sign fa-fw
  • fa fa-chevron-circle-down fa-fw
  • fa fa-chevron-circle-left fa-fw
  • fa fa-chevron-circle-right fa-fw
  • fa fa-chevron-circle-up fa-fw
  • fa fa-chevron-down fa-fw
  • fa fa-chevron-left fa-fw
  • fa fa-chevron-right fa-fw
  • fa fa-chevron-up fa-fw
  • fa fa-child fa-fw
  • fa fa-chrome fa-fw
  • fa fa-circle fa-fw
  • fa fa-circle-o fa-fw
  • fa fa-circle-o-notch fa-fw
  • fa fa-circle-thin fa-fw
  • fa fa-clipboard fa-fw
  • fa fa-clock-o fa-fw
  • fa fa-clone fa-fw
  • fa fa-cloud fa-fw
  • fa fa-cloud-download fa-fw
  • fa fa-cloud-upload fa-fw
  • fa fa-cny fa-fw
  • fa fa-code fa-fw
  • fa fa-code-fork fa-fw
  • fa fa-codepen fa-fw
  • fa fa-codiepie fa-fw
  • fa fa-coffee fa-fw
  • fa fa-cog fa-fw
  • fa fa-cogs fa-fw
  • fa fa-collapse fa-fw
  • fa fa-collapse-alt fa-fw
  • fa fa-collapse-top fa-fw
  • fa fa-columns fa-fw
  • fa fa-comment fa-fw
  • fa fa-comment-o fa-fw
  • fa fa-commenting fa-fw
  • fa fa-commenting-o fa-fw
  • fa fa-comments fa-fw
  • fa fa-comments-o fa-fw
  • fa fa-compass fa-fw
  • fa fa-compress fa-fw
  • fa fa-connectdevelop fa-fw
  • fa fa-contao fa-fw
  • fa fa-copy fa-fw
  • fa fa-copyright fa-fw
  • fa fa-creative-commons fa-fw
  • fa fa-credit-card fa-fw
  • fa fa-credit-card-alt fa-fw
  • fa fa-crop fa-fw
  • fa fa-crosshairs fa-fw
  • fa fa-css3 fa-fw
  • fa fa-cube fa-fw
  • fa fa-cubes fa-fw
  • fa fa-cut fa-fw
  • fa fa-cutlery fa-fw
  • fa fa-database fa-fw
  • fa fa-dashboard fa-fw
  • fa fa-dashcube fa-fw
  • fa fa-deaf fa-fw
  • fa fa-dedent fa-fw
  • fa fa-delicious fa-fw
  • fa fa-desktop fa-fw
  • fa fa-deviantart fa-fw
  • fa fa-diamond fa-fw
  • fa fa-digg fa-fw
  • fa fa-dot-circle-o fa-fw
  • fa fa-download fa-fw
  • fa fa-dribbble fa-fw
  • fa fa-dropbox fa-fw
  • fa fa-drupal fa-fw
  • fa fa-edge fa-fw
  • fa fa-eercast fa-fw
  • fa fa-edit fa-fw
  • fa fa-eject fa-fw
  • fa fa-ellipsis-h fa-fw
  • fa fa-ellipsis-v fa-fw
  • fa fa-empire fa-fw
  • fa fa-envelope fa-fw
  • fa fa-envelope-o fa-fw
  • fa fa-envelope-open fa-fw
  • fa fa-envelope-open-o fa-fw
  • fa fa-envelope-square fa-fw
  • fa fa-envira fa-fw
  • fa fa-eraser fa-fw
  • fa fa-etsy fa-fw
  • fa fa-eur fa-fw
  • fa fa-exchange fa-fw
  • fa fa-exclamation fa-fw
  • fa fa-exclamation-circle fa-fw
  • fa fa-exclamation-triangle fa-fw
  • fa fa-expand fa-fw
  • fa fa-expeditedssl fa-fw
  • fa fa-external-link fa-fw
  • fa fa-external-link-square fa-fw
  • fa fa-eye fa-fw
  • fa fa-eyedropper fa-fw
  • fa fa-eye-slash fa-fw
  • fa fa-facebook fa-fw
  • fa fa-facebook-official fa-fw
  • fa fa-facebook-square fa-fw
  • fa fa-fast-backward fa-fw
  • fa fa-fast-forward fa-fw
  • fa fa-fax fa-fw
  • fa fa-female fa-fw
  • fa fa-fighter-jet fa-fw
  • fa fa-file fa-fw
  • fa fa-file-archive-o fa-fw
  • fa fa-file-audio-o fa-fw
  • fa fa-file-code-o fa-fw
  • fa fa-file-excel-o fa-fw
  • fa fa-file-image-o fa-fw
  • fa fa-file-o fa-fw
  • fa fa-file-pdf-o fa-fw
  • fa fa-file-powerpoint-o fa-fw
  • fa fa-file-text fa-fw
  • fa fa-file-text-o fa-fw
  • fa fa-file-video-o fa-fw
  • fa fa-file-word-o fa-fw
  • fa fa-files-o fa-fw
  • fa fa-film fa-fw
  • fa fa-filter fa-fw
  • fa fa-fire fa-fw
  • fa fa-firefox fa-fw
  • fa fa-fire-extinguisher fa-fw
  • fa fa-first-order fa-fw
  • fa fa-flag fa-fw
  • fa fa-flag-checkered fa-fw
  • fa fa-flag-o fa-fw
  • fa fa-flash fa-fw
  • fa fa-flask fa-fw
  • fa fa-flickr fa-fw
  • fa fa-floppy-o fa-fw
  • fa fa-folder fa-fw
  • fa fa-folder-o fa-fw
  • fa fa-folder-open fa-fw
  • fa fa-folder-open-o fa-fw
  • fa fa-font fa-fw
  • fa fa-fonticons fa-fw
  • fa fa-forumbee fa-fw
  • fa fa-fort-awesome fa-fw
  • fa fa-forward fa-fw
  • fa fa-foursquare fa-fw
  • fa fa-free-code-camp fa-fw
  • fa fa-frown-o fa-fw
  • fa fa-futbol-o fa-fw
  • fa fa-gamepad fa-fw
  • fa fa-gavel fa-fw
  • fa fa-gbp fa-fw
  • fa fa-genderless fa-fw
  • fa fa-get-pocket fa-fw
  • fa fa-gg fa-fw
  • fa fa-gg-circle fa-fw
  • fa fa-gift fa-fw
  • fa fa-git fa-fw
  • fa fa-git-square fa-fw
  • fa fa-github fa-fw
  • fa fa-github-alt fa-fw
  • fa fa-github-square fa-fw
  • fa fa-gitlab fa-fw
  • fa fa-gittip fa-fw
  • fa fa-glass fa-fw
  • fa fa-glide fa-fw
  • fa fa-glide-g fa-fw
  • fa fa-globe fa-fw
  • fa fa-google fa-fw
  • fa fa-google-plus fa-fw
  • fa fa-google-plus-square fa-fw
  • fa fa-google-wallet fa-fw
  • fa fa-graduation-cap fa-fw
  • fa fa-grav fa-fw
  • fa fa-group fa-fw
  • fa fa-h-square fa-fw
  • fa fa-hacker-news fa-fw
  • fa fa-hand-lizard-o fa-fw
  • fa fa-hand-o-down fa-fw
  • fa fa-hand-o-left fa-fw
  • fa fa-hand-o-right fa-fw
  • fa fa-hand-o-up fa-fw
  • fa fa-hand-paper-o fa-fw
  • fa fa-hand-peace-o fa-fw
  • fa fa-hand-pointer-o fa-fw
  • fa fa-hand-rock-o fa-fw
  • fa fa-handshake-o fa-fw
  • fa fa-hand-scissors-o fa-fw
  • fa fa-hand-spock-o fa-fw
  • fa fa-hashtag fa-fw
  • fa fa-hdd-o fa-fw
  • fa fa-header fa-fw
  • fa fa-headphones fa-fw
  • fa fa-heart fa-fw
  • fa fa-heart-o fa-fw
  • fa fa-heartbeat fa-fw
  • fa fa-history fa-fw
  • fa fa-home fa-fw
  • fa fa-hospital-o fa-fw
  • fa fa-hourglass fa-fw
  • fa fa-hourglass-end fa-fw
  • fa fa-hourglass-half fa-fw
  • fa fa-hourglass-o fa-fw
  • fa fa-hourglass-start fa-fw
  • fa fa-houzz fa-fw
  • fa fa-html5 fa-fw
  • fa fa-i-cursor fa-fw
  • fa fa-id-badge fa-fw
  • fa fa-id-badge-o fa-fw
  • fa fa-id-card fa-fw
  • fa fa-id-card-o fa-fw
  • fa fa-ils fa-fw
  • fa fa-imdb fa-fw
  • fa fa-inbox fa-fw
  • fa fa-indent fa-fw
  • fa fa-industry fa-fw
  • fa fa-info fa-fw
  • fa fa-info-circle fa-fw
  • fa fa-inr fa-fw
  • fa fa-instagram fa-fw
  • fa fa-internet-explorer fa-fw
  • fa fa-ioxhost fa-fw
  • fa fa-italic fa-fw
  • fa fa-joomla fa-fw
  • fa fa-jpy fa-fw
  • fa fa-jsfiddle fa-fw
  • fa fa-key fa-fw
  • fa fa-keyboard-o fa-fw
  • fa fa-krw fa-fw
  • fa fa-language fa-fw
  • fa fa-laptop fa-fw
  • fa fa-lastfm fa-fw
  • fa fa-lastfm-square fa-fw
  • fa fa-leaf fa-fw
  • fa fa-leanpub fa-fw
  • fa fa-legal fa-fw
  • fa fa-lemon-o fa-fw
  • fa fa-level-down fa-fw
  • fa fa-level-up fa-fw
  • fa fa-life-ring fa-fw
  • fa fa-lightbulb-o fa-fw
  • fa fa-line-chart fa-fw
  • fa fa-link fa-fw
  • fa fa-linkedin fa-fw
  • fa fa-linkedin-square fa-fw
  • fa fa-linode fa-fw
  • fa fa-linux fa-fw
  • fa fa-list fa-fw
  • fa fa-list-alt fa-fw
  • fa fa-list-ol fa-fw
  • fa fa-list-ul fa-fw
  • fa fa-location-arrow fa-fw
  • fa fa-lock fa-fw
  • fa fa-long-arrow-down fa-fw
  • fa fa-long-arrow-left fa-fw
  • fa fa-long-arrow-right fa-fw
  • fa fa-long-arrow-up fa-fw
  • fa fa-low-vision fa-fw
  • fa fa-magic fa-fw
  • fa fa-magnet fa-fw
  • fa fa-mail-forward fa-fw
  • fa fa-mail-reply fa-fw
  • fa fa-mail-reply-all fa-fw
  • fa fa-male fa-fw
  • fa fa-map fa-fw
  • fa fa-map-marker fa-fw
  • fa fa-map-o fa-fw
  • fa fa-map-pin fa-fw
  • fa fa-map-signs fa-fw
  • fa fa-mars fa-fw
  • fa fa-mars-double fa-fw
  • fa fa-mars-stroke fa-fw
  • fa fa-mars-stroke-h fa-fw
  • fa fa-mars-stroke-v fa-fw
  • fa fa-maxcdn fa-fw
  • fa fa-meanpath fa-fw
  • fa fa-medium fa-fw
  • fa fa-medkit fa-fw
  • fa fa-meh-o fa-fw
  • fa fa-meetup fa-fw
  • fa fa-mercury fa-fw
  • fa fa-microchip fa-fw
  • fa fa-microphone fa-fw
  • fa fa-microphone-slash fa-fw
  • fa fa-minus fa-fw
  • fa fa-minus-circle fa-fw
  • fa fa-minus-square fa-fw
  • fa fa-minus-square-o fa-fw
  • fa fa-mixcloud fa-fw
  • fa fa-mobile fa-fw
  • fa fa-modx fa-fw
  • fa fa-money fa-fw
  • fa fa-moon-o fa-fw
  • fa fa-motorcycle fa-fw
  • fa fa-mouse-pointer fa-fw
  • fa fa-move fa-fw
  • fa fa-music fa-fw
  • fa fa-neuter fa-fw
  • fa fa-newspaper-o fa-fw
  • fa fa-object-group fa-fw
  • fa fa-object-ungroup fa-fw
  • fa fa-odnoklassniki fa-fw
  • fa fa-odnoklassniki-square fa-fw
  • fa fa-opencart fa-fw
  • fa fa-openid fa-fw
  • fa fa-opera fa-fw
  • fa fa-optin-monster fa-fw
  • fa fa-outdent fa-fw
  • fa fa-off fa-fw
  • fa fa-ok fa-fw
  • fa fa-ok-circle fa-fw
  • fa fa-ok-sign fa-fw
  • fa fa-pagelines fa-fw
  • fa fa-paint-brush fa-fw
  • fa fa-paper-plane fa-fw
  • fa fa-paper-plane-o fa-fw
  • fa fa-paperclip fa-fw
  • fa fa-paragraph fa-fw
  • fa fa-paste fa-fw
  • fa fa-pause fa-fw
  • fa fa-paw fa-fw
  • fa fa-paypal fa-fw
  • fa fa-pencil fa-fw
  • fa fa-pencil-square fa-fw
  • fa fa-pencil-square-o fa-fw
  • fa fa-phone fa-fw
  • fa fa-phone-square fa-fw
  • fa fa-picture-o fa-fw
  • fa fa-pie-chart fa-fw
  • fa fa-pied-piper fa-fw
  • fa fa-pied-piper-alt fa-fw
  • fa fa-pinterest fa-fw
  • fa fa-pinterest-p fa-fw
  • fa fa-pinterest-square fa-fw
  • fa fa-plane fa-fw
  • fa fa-pause-circle fa-fw
  • fa fa-pause-circle-o fa-fw
  • fa fa-percent fa-fw
  • fa fa-play fa-fw
  • fa fa-play-circle fa-fw
  • fa fa-play-circle-o fa-fw
  • fa fa-plug fa-fw
  • fa fa-plus fa-fw
  • fa fa-plus-circle fa-fw
  • fa fa-plus-square fa-fw
  • fa fa-plus-square-o fa-fw
  • fa fa-podcast fa-fw
  • fa fa-power-off fa-fw
  • fa fa-print fa-fw
  • fa fa-product-hunt fa-fw
  • fa fa-puzzle-piece fa-fw
  • fa fa-px500 fa-fw
  • fa fa-qq fa-fw
  • fa fa-qrcode fa-fw
  • fa fa-question fa-fw
  • fa fa-question-circle fa-fw
  • fa fa-question-circle-o fa-fw
  • fa fa-quote-left fa-fw
  • fa fa-quote-right fa-fw
  • fa fa-quora fa-fw
  • fa fa-random fa-fw
  • fa fa-ravelry fa-fw
  • fa fa-rebel fa-fw
  • fa fa-recycle fa-fw
  • fa fa-reddit fa-fw
  • fa fa-reddit-alien fa-fw
  • fa fa-reddit-square fa-fw
  • fa fa-refresh fa-fw
  • fa fa-registered fa-fw
  • fa fa-remove fa-fw
  • fa fa-renren fa-fw
  • fa fa-repeat fa-fw
  • fa fa-reply fa-fw
  • fa fa-reply-all fa-fw
  • fa fa-retweet fa-fw
  • fa fa-rmb fa-fw
  • fa fa-road fa-fw
  • fa fa-rocket fa-fw
  • fa fa-rotate-left fa-fw
  • fa fa-rotate-right fa-fw
  • fa fa-rss fa-fw
  • fa fa-rss-square fa-fw
  • fa fa-rub fa-fw
  • fa fa-rupee fa-fw
  • fa fa-safari fa-fw
  • fa fa-save fa-fw
  • fa fa-scissors fa-fw
  • fa fa-scribd fa-fw
  • fa fa-search fa-fw
  • fa fa-sellsy fa-fw
  • fa fa-server fa-fw
  • fa fa-share fa-fw
  • fa fa-share-alt fa-fw
  • fa fa-share-alt-square fa-fw
  • fa fa-share-square fa-fw
  • fa fa-share-square-o fa-fw
  • fa fa-sheqel fa-fw
  • fa fa-shield fa-fw
  • fa fa-ship fa-fw
  • fa fa-shirtsinbulk fa-fw
  • fa fa-shopping-bag fa-fw
  • fa fa-shopping-basket fa-fw
  • fa fa-shopping-cart fa-fw
  • fa fa-shower fa-fw
  • fa fa-sign-blank fa-fw
  • fa fa-signal fa-fw
  • fa fa-simplybuilt fa-fw
  • fa fa-sign-in fa-fw
  • fa fa-sign-language fa-fw
  • fa fa-sign-out fa-fw
  • fa fa-sitemap fa-fw
  • fa fa-skyatlas fa-fw
  • fa fa-skype fa-fw
  • fa fa-slack fa-fw
  • fa fa-sliders fa-fw
  • fa fa-slideshare fa-fw
  • fa fa-smile-o fa-fw
  • fa fa-snapchat fa-fw
  • fa fa-snapchat-ghost fa-fw
  • fa fa-snapchat-square fa-fw
  • fa fa-snowflake-o fa-fw
  • fa fa-sort fa-fw
  • fa fa-sort-alpha-asc fa-fw
  • fa fa-sort-alpha-desc fa-fw
  • fa fa-sort-amount-asc fa-fw
  • fa fa-sort-amount-desc fa-fw
  • fa fa-sort-asc fa-fw
  • fa fa-sort-numeric-asc fa-fw
  • fa fa-sort-numeric-desc fa-fw
  • fa fa-sort-desc fa-fw
  • fa fa-soundcloud fa-fw
  • fa fa-space-shuttle fa-fw
  • fa fa-spinner fa-fw
  • fa fa-spoon fa-fw
  • fa fa-spotify fa-fw
  • fa fa-square fa-fw
  • fa fa-square-o fa-fw
  • fa fa-stack-exchange fa-fw
  • fa fa-stack-overflow fa-fw
  • fa fa-star fa-fw
  • fa fa-star-o fa-fw
  • fa fa-steam fa-fw
  • fa fa-steam-square fa-fw
  • fa fa-star-half fa-fw
  • fa fa-star-half-o fa-fw
  • fa fa-step-backward fa-fw
  • fa fa-step-forward fa-fw
  • fa fa-stethoscope fa-fw
  • fa fa-sticky-note fa-fw
  • fa fa-sticky-note-o fa-fw
  • fa fa-stop fa-fw
  • fa fa-stop-circle fa-fw
  • fa fa-stop-circle-o fa-fw
  • fa fa-street-view fa-fw
  • fa fa-strikethrough fa-fw
  • fa fa-stumbleupon fa-fw
  • fa fa-stumbleupon-circle fa-fw
  • fa fa-subscript fa-fw
  • fa fa-subway fa-fw
  • fa fa-suitcase fa-fw
  • fa fa-sun-o fa-fw
  • fa fa-superscript fa-fw
  • fa fa-superpowers fa-fw
  • fa fa-table fa-fw
  • fa fa-tablet fa-fw
  • fa fa-tachometer fa-fw
  • fa fa-tag fa-fw
  • fa fa-tags fa-fw
  • fa fa-tasks fa-fw
  • fa fa-taxi fa-fw
  • fa fa-television fa-fw
  • fa fa-telegram fa-fw
  • fa fa-tencent-weibo fa-fw
  • fa fa-terminal fa-fw
  • fa fa-text-height fa-fw
  • fa fa-text-width fa-fw
  • fa fa-th fa-fw
  • fa fa-th-large fa-fw
  • fa fa-th-list fa-fw
  • fa fa-themeisle fa-fw
  • fa fa-thermometer-empty fa-fw
  • fa fa-thermometer-full fa-fw
  • fa fa-thermometer-half fa-fw
  • fa fa-thermometer-quarter fa-fw
  • fa fa-thermometer-three-quarters fa-fw
  • fa fa-thumb-tack fa-fw
  • fa fa-thumbs-down fa-fw
  • fa fa-thumbs-o-down fa-fw
  • fa fa-thumbs-o-up fa-fw
  • fa fa-thumbs-up fa-fw
  • fa fa-ticket fa-fw
  • fa fa-times fa-fw
  • fa fa-times-circle fa-fw
  • fa fa-times-circle-o fa-fw
  • fa fa-times-close fa-fw
  • fa fa-times-close-o fa-fw
  • fa fa-tint fa-fw
  • fa fa-toggle-down fa-fw
  • fa fa-toggle-left fa-fw
  • fa fa-toggle-off fa-fw
  • fa fa-toggle-on fa-fw
  • fa fa-toggle-right fa-fw
  • fa fa-toggle-up fa-fw
  • fa fa-trademark fa-fw
  • fa fa-train fa-fw
  • fa fa-transgender fa-fw
  • fa fa-transgender-alt fa-fw
  • fa fa-trash fa-fw
  • fa fa-trash-o fa-fw
  • fa fa-tree fa-fw
  • fa fa-trello fa-fw
  • fa fa-tripadvisor fa-fw
  • fa fa-trophy fa-fw
  • fa fa-truck fa-fw
  • fa fa-tty fa-fw
  • fa fa-tumblr fa-fw
  • fa fa-tumblr-square fa-fw
  • fa fa-turkish-lira fa-fw
  • fa fa-twitch fa-fw
  • fa fa-twitter fa-fw
  • fa fa-twitter-square fa-fw
  • fa fa-umbrella fa-fw
  • fa fa-underline fa-fw
  • fa fa-undo fa-fw
  • fa fa-universal-access fa-fw
  • fa fa-university fa-fw
  • fa fa-unlink fa-fw
  • fa fa-unlock fa-fw
  • fa fa-unlock-alt fa-fw
  • fa fa-unsorted fa-fw
  • fa fa-upload fa-fw
  • fa fa-usb fa-fw
  • fa fa-usd fa-fw
  • fa fa-user fa-fw
  • fa fa-user-o fa-fw
  • fa fa-user-circle fa-fw
  • fa fa-user-circle-o fa-fw
  • fa fa-user-md fa-fw
  • fa fa-user-plus fa-fw
  • fa fa-user-secret fa-fw
  • fa fa-user-times fa-fw
  • fa fa-users fa-fw
  • fa fa-venus fa-fw
  • fa fa-venus-double fa-fw
  • fa fa-venus-mars fa-fw
  • fa fa-viacoin fa-fw
  • fa fa-viadeo fa-fw
  • fa fa-viadeo-square fa-fw
  • fa fa-video-camera fa-fw
  • fa fa-vimeo fa-fw
  • fa fa-vimeo-square fa-fw
  • fa fa-vine fa-fw
  • fa fa-vk fa-fw
  • fa fa-volume-control-phone fa-fw
  • fa fa-volume-down fa-fw
  • fa fa-volume-off fa-fw
  • fa fa-volume-up fa-fw
  • fa fa-warning fa-fw
  • fa fa-weelchair fa-fw
  • fa fa-wheelchair-alt fa-fw
  • fa fa-weibo fa-fw
  • fa fa-weixin fa-fw
  • fa fa-whatsapp fa-fw
  • fa fa-wheelchair fa-fw
  • fa fa-wifi fa-fw
  • fa fa-wikipedia-w fa-fw
  • fa fa-window-close fa-fw
  • fa fa-window-close-o fa-fw
  • fa fa-window-maximise fa-fw
  • fa fa-window-minimize fa-fw
  • fa fa-window-restore fa-fw
  • fa fa-windows fa-fw
  • fa fa-wordpress fa-fw
  • fa fa-wpbeginner fa-fw
  • fa fa-wpexplorer fa-fw
  • fa fa-wpforms fa-fw
  • fa fa-wrench fa-fw
  • fa fa-xing fa-fw
  • fa fa-xing-square fa-fw
  • fa fa-y-combinator fa-fw
  • fa fa-yahoo fa-fw
  • fa fa-yelp fa-fw
  • fa fa-yoast fa-fw
  • fa fa-youtube fa-fw
  • fa fa-youtube-play fa-fw
  • fa fa-youtube-square fa-fw

How to use

All icons require an <i> tag with a unique class, prefixed with fa-. To use, place the following code just about anywhere:

<i class="fa fa-search"></i>

There are also styles available for inverted (white) icons, made ready with one extra class. We will specifically enforce this class on hover and active states for nav and dropdown links.

<i class="fa fa-search fa-white"></i>

Heads up! When using beside strings of text, as in buttons or nav links, be sure to leave a space after the <i> tag for proper spacing.


Icon examples

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

Buttons

Button group in a button toolbar
<div class="btn-toolbar">
  <div class="btn-group">

    <a class="btn" href="#"><i class="fa fa-align-left"></i></a>
    <a class="btn" href="#"><i class="fa fa-align-center"></i></a>
    <a class="btn" href="#"><i class="fa fa-align-right"></i></a>
    <a class="btn" href="#"><i class="fa fa-align-justify"></i></a>
  </div>
</div>
Dropdown in a button group
<div class="btn-group">
  <a class="btn btn-primary" href="#"><i class="fa fa-user"></i> User</a>
  <a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
  <ul class="dropdown-menu">
    <li><a href="#"><i class="fa fa-pencil"></i> Edit</a></li>
    <li><a href="#"><i class="fa fa-trash"></i> Delete</a></li>
    <li><a href="#"><i class="fa fa-ban"></i> Ban</a></li>
    <li class="divider"></li>
    <li><a href="#"> Make admin</a></li>
  </ul>
</div>
Small button
<a class="btn btn-sm" href="#"><i class="fa fa-star"></i></a>

Navigation

<ul class="nav nav-list">
  <li class="active"><a href="#"><i class="fa fa-home"></i> Home</a></li>
  <li><a href="#"><i class="fa fa-book"></i> Library</a></li>
  <li><a href="#"><i class="fa fa-pencil"></i> Applications</a></li>
  <li><a href="#">Misc</a></li>
</ul>

Form fields

<div class="form-group">
    <label class="control-label" for="inputIcon">Email address</label>

    <div class="controls">
        <div class="input-group">
            <span class="input-group-prepend">
                <span class="input-group-text">
                    <i class="fa fa-envelope"></i>
                </span>
            </span>
            <input class="form-control" id="inputIcon" type="text">
        </div>
    </div>
</div>