Progress

Progress bar is a graphical control element used to visualize the progression of an operation such as a download, file transfer, or installation. Bootstrap progress bars features support for stacked bars, animated backgrounds, and text labels.

How to use

Progress components are built with two HTML elements. Create a wrapper element and add .progress to the to indicate the max value of the progress bar and .progress-bar class to child element which indicates the progress so far.

Progress Bar width

You can set the width of progress bar using inline style, utility class, or custom CSS to set their width.

Setting width using inline-style

Set the width using css style attribute.

  • We use the .progress as a wrapper to indicate the max value of the progress bar.
  • We use the inner .progress-bar to indicate the progress so far.
  • The .progress-bar requires an inline style, utility class, or custom CSS to set their width.
  • The .progress-bar also requires some role and aria attributes to make it accessible.
Setting width using utilities

You also can set width using the bootstrap utilities for setting the width.

Labels

You can add labels to your progress bars by placing text within the .progress-bar.

Height

Set height of the wrapper element(element where .progress class is added) using inline-style or custom css.

Backgrounds

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

  • .bg-success
  • .bg-info
  • .bg-warning
  • .bg-danger
Multiple bars

Include multiple progress bars in a progress component by creating multiple child elements with .progress-bar class.

Striped

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

Animated stripes

To animate the striped gradient add .progress-bar-animated to .progress-bar which animate the stripes right to left via CSS3 animations.

Related Tutorial
Follow Us
https://www.facebook.com/Rookie-Nerd-638990322793530 https://twitter.com/RookieNerdTutor https://plus.google.com/b/117136517396468545840 #
Contents +