From the course: Bootstrap 4 Essential Training

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Progress bar styles

Progress bar styles - Bootstrap Tutorial

From the course: Bootstrap 4 Essential Training

Start my 1-month free trial

Progress bar styles

- [Instructor] If you need to create progress bars, Bootstrap makes it easy with a number of classes to take care of them. In order to do so, you need two sets of tags. The main container is the progress container, and then internally, you create a container with the progress-bar class. To control the width and height of the progress bar, you can either use the width classes, which are the w-25, 50, 75 or 100, or directly use the style attribute to control the width and the height. You can also add a label by putting in some text between the internal progress bar element. We'll take a look at how to do that in just a minute. Of course, you also have color styles. The bars are blue by default or the primary color. If you want to, you can use one of the contextual color classes to change the color of the context of the bar. Now there is an alternative style that you can use called progress-bar-striped, and that gives you a bar that has some striped sort of bars on it. If you want to…

Contents