I have the below code where I am trying to show the shipment progress. I want such that I want to show place B point based on how much distance is covered. For example : If 70% of total distance is completed, progress bar will show PLACE B point on 70% of the width of total progress bar. Could you please help, whatever I tried it is breaking the whole thing, yes I am noob. Please help.
.progress {
list-style: none;
margin: 0;
padding: 0;
display: table;
table-layout: fixed;
width: 100%;
color: #849397;
}
.progress > li {
position: relative;
display: table-cell;
text-align: center;
font-size: 0.8em;
}
.progress > li:before {
content: '';
display: block;
margin: 0 auto;
background: #dfe3e4;
width: 3em;
height: 3em;
text-align: center;
margin-bottom: 0.25em;
line-height: 3em;
border-radius: 100%;
position: relative;
z-index: 1000;
}
.progress > li:after {
content: "";
position: absolute;
display: block;
background: #dfe3e4;
width: 100%;
height: 0.5em;
top: 1.25em;
left: 50%;
margin-left: 1.5em\9;
z-index: -1;
}
.progress > li:last-child:after {
display: none;
}
.progress > li.is-complete {
color: #2ecc71;
}
.progress > li.is-complete:before, .progress > li.is-complete:after {
color: #fff;
background: blue;
}
.progress > li.is-active {
color: blue;
}
.progress > li.is-active:before {
color: #fff;
background: green;
}
/**
* Needed for IE8
*/
.progress__last:after {
display: none !important;
}
/**
* Some Generic Stylings
*/
*,
*:after,
*:before {
box-sizing: border-box;
}
<ol class="progress">
<li class="is-complete" data-step="1">
Place A
</li>
<li class="is-active" data-step="2">
Place B
</li>
<li data-step="3" class="progress__last">
Place C
</li>
</ol>