JSFiddle - React, Tailwind, and code Playground

by Felis Catus

HTML

<div class="progressback">
    <div class="progressbar">
        <div class="progressfill">
            <div class="progressblob">
            </div>
        </div>
    </div>
</div>

CSS

.progressback{
    width:500px;
    height:50px;
    position:relative;
    background:white;
    border:1px solid black;
    
    text-align:center;
}
.progressbar{
    width:400px;
    border:1px solid blue;
    height:3px;
    margin:20px auto;
    text-align:left;
}
.progressfill{
    background:blue;
    width:35%;
    height:3px;
}
.progressblob{
    height:30px;
    width:30px;
    border-radius:15px;
    background:blue;
    position:relative;
    top:-13px;
    margin:0 0 0 auto;
}
.progressblob:after{
    color:white;
    content:attr"%";
    line-height:30px;
    font-size:12px;
    text-align:center;
    display:inline-block;
    width:30px;
}