HTML CSS examples for Bootstrap Class List:progress-bar
To create a default progress bar, add a .progress class to a container element and add the progress-bar class to its child element.
Use the CSS width property to set the width of the progress bar:
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.6/umd/popper.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js"></script> </head><!-- ww w. ja v a 2 s . co m--> <body> <div class="container"> <h2>Basic Progress Bar</h2> <div class="progress"> <div class="progress-bar" style="width:70%"></div> </div> </div> </body> </html>