Bootstrap 4 Tutorial
A user can see how far along they are in a process by using a progress bar.
To build a default progress bar, add a .progress class to a container element and add the .progress-bar class to its child element. To adjust the progress bar’s width, use the CSS width property:
By default, the progress bar’s height is 16 pixels. To adjust it, use the CSS height attribute. Keep in mind that the progress container and the progress bar must have the same height:
To display the visible percentage, add text inside the progress bar as follows:
70%
The progress bar is blue (primary) by default. To alter its color, apply any of the Bootstrap 4 contextual background classes:
To give the progress bars stripes, use the .progress-bar-striped class:
To make the progress bar animate, add the .progress-bar-animated class:
Another way to stack progress bars is to:
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.