I have a progress bar and I would like to add marks to it at certain points (I figure out where in javascript and set the 'left' property programmatically). I end up with something like this after the js code runs:
.marker {
width:2px;
background-color:#f00;
position:relative;
}
<!-- div for a progress bar here -->
<div>
--- progress bar here --- --- progress bar here --- --- progress bar here ---
</div>
<!-- div for markers here -->
<div>
<div class="marker" style='left:0%;'> </div>
<div class="marker" style='left:10%;'> </div>
<div class="marker" style='left:20%;'> </div>
<div class="marker" style='left:30%;'> </div>
<div class="marker" style='left:40%;'> </div>
<div class="marker" style='left:50%;'> </div>
<div class="marker" style='left:60%;'> </div>
<div class="marker" style='left:100%;'> </div>
</div>
I can see the red markers at the correct relative position underneath the progress bar but I'd like them them all to be on the same level overlapping one another.
Ideally, I'd like them to be on top of the progress bar.