Created
April 23, 2018 15:47
-
-
Save amelieykw/a7fa48be1992a348134a4c5ea8eff1da to your computer and use it in GitHub Desktop.
[Progress Bar + Indicator] #ProgressBar #Indicator #Bootstrap #CSS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Bootstrap Example</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"> | |
<div class="progress" style="position: relative;width:20%;"> | |
<div class="progress-bar" role="progressbar" style="width:75%;background-color: transparent;border:0px; border-right:5px solid black;position:absolute; top: 0px; left: 0px; z-index: 2;"> | |
<span style="color: black;position: absolute; left:110%;">75</span> | |
</div> | |
<div class="progress-bar progress-bar-danger" role="progressbar" style="width:20%"></div> | |
<div class="progress-bar progress-bar-warning" role="progressbar" style="width:50%"></div> | |
<div class="progress-bar progress-bar-success" role="progressbar" style="width:30%"></div> | |
</div> | |
<div class="progress" style="position: relative;top:-20px;width:20%;background-color: transparent;box-shadow:none;"> | |
<div class="progress-bar" role="progressbar" style="width:20%;background-color: transparent;box-shadow:none;"> | |
<span style="color:black;position: absolute; left:0%;">0</span> | |
<span style="color:black;position: absolute; left:15%;">20</span> | |
</div> | |
<div class="progress-bar" role="progressbar" style="width:50%;background-color: transparent;box-shadow:none;"> | |
<span style="color:black;position: absolute; left:65%;">50</span> | |
</div> | |
<div class="progress-bar" role="progressbar" style="width:30%;background-color: transparent;box-shadow:none;"> | |
<span style="color:black;position: absolute; right:0%;">100</span> | |
</div> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment