Progress Bars with Emphasis Classes - HTML CSS Bootstrap

HTML CSS examples for Bootstrap:Progress Bar

Description

Progress Bars with Emphasis Classes

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
 <head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Example of Bootstrap 3 Progress Bar</title>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
 </head><!--  w ww  .  j  a  va  2  s.  c o  m-->
 <body>
  <div>
   <div class="progress">
    <div class="progress-bar progress-bar-info" style="width: 20%">
     <span class="sr-only">20% Used</span>
    </div>
   </div>
   <div class="progress">
    <div class="progress-bar progress-bar-success" style="width: 40%">
     <span class="sr-only">40% Used</span>
    </div>
   </div>
   <div class="progress">
    <div class="progress-bar progress-bar-warning" style="width: 80%">
     <span class="sr-only">80% Used</span>
    </div>
   </div>
   <div class="progress">
    <div class="progress-bar progress-bar-danger" style="width: 90%">
     <span class="sr-only">90% Used</span>
    </div>
   </div>
   <hr>
   <div class="progress">
    <div class="progress-bar progress-bar-info" style="width: 20%">
      Disk Space: 80% free
    </div>
   </div>
   <div class="progress">
    <div class="progress-bar progress-bar-success" style="width: 40%">
      Enough Disk Space: 60% free
    </div>
   </div>
   <div class="progress">
    <div class="progress-bar progress-bar-warning" style="width: 80%">
      Low Disk Space: 80% full
    </div>
   </div>
   <div class="progress">
    <div class="progress-bar progress-bar-danger" style="width: 90%">
      Not Enough Disk Space: 90% full
    </div>
   </div>
  </div>
 </body>
</html>

Related Tutorials