Bootstrap progress-striped class


The progress-striped class is used to form a striped progress bar in Bootstrap.

You can try to run the following code to create a striped progress bar in Bootstrap

Example

Live Demo

<!DOCTYPE html>
<html>
   <head>
      <title>Bootstrap Example</title>
      <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
      <script src = "/scripts/jquery.min.js"></script>
      <script src = "/bootstrap/js/bootstrap.min.js"></script>
   </head>
   <body>
      <h2>Striped Progress Bars</h2>
      <h3>Success Progress Bar</h3>
      <div class = "progress progress-striped">
         <div class = "progress-bar progress-bar-success" role = "progressbar"
            aria-valuenow = "45" aria-valuemin = "0" aria-valuemax = "100" style="width: 45%;">
            <span class = "sr-only">45%Complete (success)</span>
         </div>
      </div>
      <h3>Info Progress Bar</h3>
      <div class = "progress progress-striped">
         <div class = "progress-bar progress-bar-info" role = "progressbar"
            aria-valuenow = "80" aria-valuemin = "0" aria-valuemax = "100" style = "width: 80%;">
            <span class = "sr-only">80% Complete (info)</span>
         </div>
      </div>
   </body>
</html>

Updated on: 12-Jun-2020

227 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements