Progress

Documentation and examples for using Bootstrap custom progress bars featuring support for stacked bars, animated backgrounds, and text labels.


Examples

								
									<div class="progress" role="progressbar" aria-label="Basic example" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">
										  <div class="progress-bar" style="width: 0%"></div>
										</div>
										<div class="progress" role="progressbar" aria-label="Basic example" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100">
										  <div class="progress-bar" style="width: 25%"></div>
										</div>
										<div class="progress" role="progressbar" aria-label="Basic example" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100">
										  <div class="progress-bar" style="width: 50%"></div>
										</div>
										<div class="progress" role="progressbar" aria-label="Basic example" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
										  <div class="progress-bar" style="width: 75%"></div>
										</div>
										<div class="progress" role="progressbar" aria-label="Basic example" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100">
										  <div class="progress-bar" style="width: 100%"></div>
										</div>
								
							

Height

You only set a height value on the .progress container, so if you change that value, the inner .progress-bar will automatically resize accordingly.

								
									<div class="progress" role="progressbar" aria-label="Example 1px high" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100" style="height: 1px">
									  <div class="progress-bar" style="width: 25%"></div>
									</div>
									<div class="progress" role="progressbar" aria-label="Example 20px high" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100" style="height: 20px">
									  <div class="progress-bar" style="width: 25%"></div>
									</div>
								
							

Backgrounds

Use background utility classes to change the appearance of individual progress bars.

								
									<div class="progress" role="progressbar" aria-label="Success example" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100">
									  <div class="progress-bar bg-success" style="width: 25%"></div>
									</div>
									<div class="progress" role="progressbar" aria-label="Info example" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100">
									  <div class="progress-bar bg-info" style="width: 50%"></div>
									</div>
									<div class="progress" role="progressbar" aria-label="Warning example" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
									  <div class="progress-bar bg-warning" style="width: 75%"></div>
									</div>
									<div class="progress" role="progressbar" aria-label="Danger example" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100">
									  <div class="progress-bar bg-danger" style="width: 100%"></div>
									</div>
								
							

Striped

Add .progress-bar-striped to any .progress-bar to apply a stripe via CSS gradient over the progress bar’s background color.

								
									<div class="progress" role="progressbar" aria-label="Default striped example" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100">
									  <div class="progress-bar progress-bar-striped" style="width: 10%"></div>
									</div>
									<div class="progress" role="progressbar" aria-label="Success striped example" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100">
									  <div class="progress-bar progress-bar-striped bg-success" style="width: 25%"></div>
									</div>
									<div class="progress" role="progressbar" aria-label="Info striped example" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100">
									  <div class="progress-bar progress-bar-striped bg-info" style="width: 50%"></div>
									</div>
									<div class="progress" role="progressbar" aria-label="Warning striped example" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
									  <div class="progress-bar progress-bar-striped bg-warning" style="width: 75%"></div>
									</div>
									<div class="progress" role="progressbar" aria-label="Danger striped example" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100">
									  <div class="progress-bar progress-bar-striped bg-danger" style="width: 100%"></div>
									</div>
								
							

For more information refer official Bootstrap documentation for detailed technical explanation.