I am trying to change the code to do something a little different, but I cannot get it to work. This is the code:
<div id="progress-bar" class="all-rounded"> <div id="progress-bar-percentage" class="all-rounded" style="width: 88%">88/100</div> </div>
It means:

Using this CSS:
.all-rounded { -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; } .spacer { display: block; } #progress-bar { width: 100px; background: #cccccc; } #progress-bar-percentage { background: #3063A5; padding: 5px 0px; color: #FFF; text-align: center; }
As you can see, the 88/100 text is printed inside the inner progress-bar-precentage , so it is centered relative to this div, the problem with this is that the width of the progress-bar-precentage very small, the text will be out of place, my idea is is to focus it in relation to the outter div progress-bar , so it will always be in place regardless of the inner div, but I donβt know how to place the text on top and in the center, any ideas?
html css
DomingoSL Nov 08 2018-12-21T00: 00Z
source share