Progress Bar


Progress components are built with two HTML elements, some CSS to set the width, and a few attributes.

Bootstrap provides several types of progress bars.
  • progress-bar (default)
  • progress-bar-striped

Add class active to animate the progress bar

Colored Progress Bars
  • progress-bar-default
  • progress-bar-primary
  • progress-bar-success
  • progress-bar-info
  • progress-bar-warning
  • progress-bar-danger

Progress bars can also be stacked.

Source Code

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Tutor Joes</title>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
    <!--<link rel="stylesheet" href="css/bootstrap.min.css">-->
    <style>
        hr {
            margin-top: 15px;
            margin-bottom: 15px;
            display: block;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="row">
            <div class="col-md-6">
                <h3>Progress Bar</h3>
                <div class="progress">
                    <div class="progress-bar" style="width: 60%;">60%</div>
                </div>
                <hr>
                <div class="progress">
                    <div class="progress-bar progress-bar-success" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="40" style="width: 50%;">50%</div>
                </div>
                <hr>
                <div class="progress">
                    <div class="progress-bar progress-bar-danger" style="width: 60%;">60%</div>
                </div>
                <hr>
                <div class="progress">
                    <div class="progress-bar progress-bar-warning" style="width: 60%;">60%</div>
                </div>
                <hr>
                <div class="progress">
                    <div class="progress-bar progress-bar-info" style="width: 60%;">60%</div>
                </div>
                <hr>
                <div class="progress">
                    <div class="progress-bar progress-bar-danger progress-bar-striped" style="width: 60%;">60%</div>
                </div>
                <hr>
                <div class="progress">
                    <div class="progress-bar progress-bar-danger progress-bar-striped active" style="width: 60%;">60%</div>
                </div>
                <hr>
                <div class="progress">
                    <div class="progress-bar progress-bar-success" style="width: 40%;">40%</div>
                    <div class="progress-bar progress-bar-warning" style="width: 30%;">30%</div>
                    <div class="progress-bar progress-bar-danger" style="width: 20%;">20%</div>
                </div>
                <hr>
            </div>
        </div>
    </div>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
	<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
    <!--<script src="js/jquery.min.js"></script>-->
    <!--<script src="js/bootstrap.min.js"></script>-->
</body>
</html>
To download raw file Click Here