Progress bars

Provide up-to-date feedback on the progress of a workflow or action with simple yet flexible progress bars.

Cross-browser compatibility

Progress bars use CSS3 transitions and animations to achieve some of their effects. These features are not supported in Internet Explorer 9 and below or older versions of Firefox. Opera 12 does not support animations.

Basic example

Default progress bar.

60% Complete
{% highlight html %}
60% Complete
{% endhighlight %}

Large progress bars

The large progress bar can be used to visually depict a comparison.

60% Complete
{% highlight html %}
60% Complete
{% endhighlight %}

With label

Remove the <span> with .sr-only class from within the progress bar to show a visible percentage.

60%
{% highlight html %}
60%
{% endhighlight %}

To ensure that the label text remains legible even for low percentages, consider adding a min-width to the progress bar.

0%
2%
{% highlight html %}
0%
2%
{% endhighlight %}

Contextual alternatives

Progress bars use some of the same button and alert classes for consistent styles.

100% Complete (success)
40% Complete (success)
20% Complete
60% Complete (warning)
80% Complete (danger)
{% highlight html %}
100% Complete (success)
40% Complete (success)
20% Complete
60% Complete (warning)
80% Complete (danger)
{% endhighlight %}