Skip to content

Instantly share code, notes, and snippets.

@VhMuzini
Last active May 14, 2018 17:14
Show Gist options
  • Save VhMuzini/fbc2dc3378b1310b2a92577f444e7dd0 to your computer and use it in GitHub Desktop.
Save VhMuzini/fbc2dc3378b1310b2a92577f444e7dd0 to your computer and use it in GitHub Desktop.
Progress Bar with Label behind the actual "bar" using bootstrap
<div class="progress" style="height: 20px;">
<div class="progress-bar progress-bar-stripped" role="progressbar"
aria-valuenow="25" aria-valuemin="0" aria-valuemax="100" style="width: 50%">
<span>30%</span>
</div>
</div>
.progress {
position:relative;
}
.progress strong {
position:absolute;
left:0;
width:100%;
text-align:center;
z-index:2;
color:black;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment