1.

Striped Progress Bar in Bootstrap

Answer»

With Bootstrap, you can create a Striped progress Bar. A Progress Bar with stripes looks like this:

Bootstrap provides .progress-bar-striped class to create a striped Progress Bar.

Let us now see an EXAMPLE to ADD stripes to Progress Bar:

&LT;!DOCTYPE html> <html lang="en"> <head>   <title>Bootstrap Striped Progress Bar</title>   <meta charset="utf-8">   <meta name="viewport" content="width=device-width, initial-scale=1">   <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/3.3.1/jquery.min.js"></script>   <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> </head> <body> <div class="container"> <h2>Android App Information</h2>   <h3>App Performance</h3>   <div class="progress">     <div class="progress-bar progress-bar-success progress-bar-striped" role="progressbar" aria-valuenow="90"   aria-valuemin="0" aria-valuemax="100" style="width:90%">       90%     </div>   </div>   <h3>App Crashes</h3>   <div class="progress">     <div class="progress-bar progress-bar-warning progress-bar-striped" role="progressbar" aria-valuenow="10"   aria-valuemin="0" aria-valuemax="100" style="width:10%">       10%     </div>   </div>   <h3>App Errors</h3>   <div class="progress">     <div class="progress-bar progress-bar-danger progress-bar-striped" role="progressbar" aria-valuenow="20"   aria-valuemin="0" aria-valuemax="100" style="width:20%">       20%     </div>   </div> </div> </body> </html>

The output:



Discussion

No Comment Found