My progress bar, designed with Bootstrap, currently displays the text in a way that is not centered as desired.
The issue I am experiencing is that the "0/0" text shifts to the left and using text-align: center;
does not seem to resolve this alignment problem.
Interestingly enough, instead of showing "0/0", only "0" appears on the progress bar. However, when checking the console, it indicates that "0/0" is present.
Does anyone have any suggestions for fixing this so that the "0/0" text appears in the center?
https://i.sstatic.net/BP2VM.png
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" rel="stylesheet" />
<div class="row justify-content-center">
<div class="col-xs-1">âšī¸</div>
<div class="col-xs-8">
<div class="progress">
<div class="progress-bar progress-bar-success" role="progressbar" style="width: test_number_percentage" aria- valuenow="test_number_percentage" aria-valuemin="0" aria-valuemax="7">
0 / 7
</div>
</div>
</div>
<div class="col-xs-1" style="padding-left: 0;">đ</div>
</div>
test_number percentage is equal to 0% if 0 or 100% if 7 test_number is either 0 or 7 depending on the bar.