JSFiddle - React, Tailwind, and code Playground
by Brodingo
HTML
<div id="progress-bar">
<span class="percent-hash percent25">25%</span>
<span class="percent-hash percent50">50%</span>
<span class="percent-hash percent75">75%</span>
</div>
CSS
body {
background-color: #ccc;
font-family: helvetica, sans-serif;
font-size: 10px;
}
#progress-bar {
position: relative;
width: 300px;
height: 30px;
border: 1px solid #fff;
background-image: -webkit-gradient(linear, left top, left bottom,
from(rgba(255,255,255,0.6)),
color-stop(0.05, rgba(255,255,255,0.4)),
to(rgba(255,255,255,0.0)));
background-color: #8a8;
-webkit-box-shadow: 0 2px 2px rgba(0,0,0,0.2);
}
.percent-hash {
position: absolute;
bottom: 0;
height: 15px;
border-left: 1px solid #fff;
margin-left: -1px;
text-indent: -8px;
line-height: 50px;
color: #444;
text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}
.percent25 {
left: 25%;
}
.percent50 {
left: 50%;
}
.percent75 {
left: 75%;
}