Progress bars

  • stylesheet
progress-bars.less  

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.

<div class="progress">
 <div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;">
  <span class="sr-only">60% Complete</span>
 </div>
</div>

With label

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

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

Contextual alternatives

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

Striped

Uses a gradient to create a striped effect. Not available in IE9 and below.

Animated

Add .active to .progress-bar-striped to animate the stripes right to left. Not available in IE9 and below.

Stacked

Place multiple bars into the same .progress to stack them.