Progress

Defines different styles for progress bars.


Usage

The progress bar consists of a background bar and the progress bar itself, indicating the increase.

Class Description
.progress This class is used on the parent container to create the background of the progress bar.
.progress-bar This class needs to be added to the child element to create the actual progress bar.

Example

40%

Markup

<div class="progress">
    <div class="progress-bar" style="width: 40%;">40%</div>
</div>

Size modifiers

Add the .progress-mini or .progress-small class to change the size of the bar.

Example

Markup

<div class="progress progress-mini">...</div>
<div class="progress progress-small">...</div>

Color modifiers

To apply different colors to your progress bars, just add the .progress-bar-success, .progress-bar-warning or .progress-bar-danger class.

Example

Markup

<div class="progress progress-success">...</div>
<div class="progress progress-warning">...</div>
<div class="progress progress-danger">...</div>

Striped

To create a striped progress bar, use the .striped class.

Example

Markup

<div class="progress progress-striped">...</div>

You can even animate the striped bar. To do so, just add the .active class.

Example

Markup

<div class="progress progress-striped active">...</div>

Combinable

All modifiers of the Progress component can be combined with each other.

Example

Markup

<div class="progress progress-small progress-danger progress-striped active">...</div>