Bootstrap progress bar styles

There are examples of progress-bars, different styles "success", "info", "warning", "danger". You have to remember setting Internet privilege for external scripts.
<!DOCTYPE html>
<html>
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
  <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<style>
span {color:black;}
</style>
</head>
<body>
<br>
<!-- progress-bar-success/info/warning/danger/ -->
<div class="container">
  <div class="progress">
    <div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="40"
     aria-valuemin="0" aria-valuemax="100" style="width:50%">
      <span>Normal progress bar</span>
    </div>
  </div>
<!-- progress-bar-striped - striped progress bar -->  
  <div class="progress">
  <div class="progress-bar progress-bar-info progress-bar-striped" role="progressbar"
  aria-valuenow="50" aria-valuemin="0" aria-valuemax="100" style="width:75%">
    <span>Striped progress bar</span>
  </div>
</div>
<!-- progress-bar-striped active - animated progress bar -->
 <div class="progress">
  <div class="progress-bar progress-bar-striped active" role="progressbar"
  aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width:100%">
    <span>Animated progress bar</span>
  </div>
</div>
  </div>
</body>
</html>

Responses

0 Replies