Bootstrap 3 Tutorial
A progress bar can be used to indicate how far along a user is in a process.
Bootstrap offers numerous styles of progress bars.
The default progress bar in Bootstrap looks like this:
To make a default progress bar, apply the .progress class to a <div> element:
70% Complete
Note:
Internet Explorer 9 and earlier do not support progress bars (because they employ CSS3 transitions and animations to produce some of their effects).
Note:
Please keep in mind that using the aria-* attributes will help improve accessibility for persons using screen readers.
A progress bar with a label resembles this:
Remove the .sr-only class from the progress bar to display a visible percentage:
70%
Progress bars can be used with the following contextual classes:
The following example demonstrates how to generate progress bars using different contextual classes:
40% Complete (success)
50% Complete (info)
60% Complete (warning)
70% Complete (danger)
Progress bars can also be striped:
Add class .progress-bar-striped to add stripes to the progress bars:
40% Complete (success)
50% Complete (info)
60% Complete (warning)
70% Complete (danger)
Add class .active to animate the progress bar:
40%
Progress bars can also be layered.
To create a stacked progress bar, place numerous bars into the same <div class=”progress”>.
Free Space
Warning
Danger
CodingAsk.com is designed for learning and practice. Examples may be made simpler to aid understanding. Tutorials, references, and examples are regularly checked for mistakes, but we cannot guarantee complete accuracy. By using CodingAsk.com, you agree to our terms of use, cookie, and privacy policy.
Copyright 2010-2024 by Refsnes Data. All Rights Reserved.