Create a progress bar with Bootstrap

BootstrapWeb DevelopmentCSS Framework

To create a basic progress bar in Bootstrap, use the .progress and .progress-bar class.

You can try to run the following code to form a progress bar −

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>
      <div class = "progress">
         <div class = "progress-bar" role = "progressbar" aria-valuenow = "60"
            aria-valuemin = "0" aria-valuemax = "100" style = "width: 60%;">
            <span class = "sr-only">60% Complete</span>
         </div>
      </div>
   </body>
</html>
raja
Published on 20-Jun-2018 17:33:21
Advertisements