Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Bootstrap 4 Progress Bars with Emphasis Classes</title> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css"> <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js"></script> <style> .bs-example{ margin: 20px; } /* Adding space at the bottom of progress bar */ .progress{ margin-bottom: 1rem; } </style> </head> <body> <div class="bs-example"> <div class="progress"> <div class="progress-bar bg-info" style="width: 20%"></div> </div> <div class="progress"> <div class="progress-bar bg-success" style="width: 40%"></div> </div> <div class="progress"> <div class="progress-bar bg-warning" style="width: 80%"></div> </div> <div class="progress"> <div class="progress-bar bg-danger" style="width: 90%"></div> </div> <hr /> <div class="progress"> <div class="progress-bar bg-info" style="width: 20%"> Disk Space: 80% free </div> </div> <div class="progress"> <div class="progress-bar bg-success" style="width: 40%"> Enough Disk Space: 60% free </div> </div> <div class="progress"> <div class="progress-bar bg-warning" style="width: 80%"> Low Disk Space: 80% full </div> </div> <div class="progress"> <div class="progress-bar bg-danger" style="width: 90%"> Not Enough Disk Space: 90% full </div> </div> </div> </body> </html>