Bootstrap Tutorial - Create striped Progress Bar








The following code shows how to create striped Progress Bar.

Example

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet"
  href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css">
<link rel="stylesheet"
  href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap-theme.min.css">
<script type="text/javascript"
  src="http://code.jquery.com/jquery.min.js"></script>
<script
  src="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
<style type="text/css">
.bs-example {<!--from w w w . j a  v a 2 s  .co  m-->
  margin: 20px;
}
</style>
</head>
<body>
  <div class="bs-example">
    <div class="progress progress-striped">
      <div class="progress-bar progress-bar-info" style="width: 20%">
        <span class="sr-only">20% Complete</span>
      </div>
    </div>
    <div class="progress progress-striped">
      <div class="progress-bar progress-bar-success" style="width: 40%">
        <span class="sr-only">40% Complete</span>
      </div>
    </div>
    <div class="progress progress-striped">
      <div class="progress-bar progress-bar-warning" style="width: 60%">
        <span class="sr-only">60% Complete</span>
      </div>
    </div>
    <div class="progress progress-striped">
      <div class="progress-bar progress-bar-danger" style="width: 80%">
        <span class="sr-only">80% Complete</span>
      </div>
    </div>
  </div>
</body>
</html>

Click to view the demo