JSFiddle - React, Tailwind, and code Playground
by Rich Costello
HTML
<div class="container-stepper">
<ul class="stepwise-wrapper">
<li class="active">Review Document Statuses Below</li>
<li>Upload Required Documents Individually</li>
<li>Submit to Confirm Resubmitted Documents</li>
</ul>
</div>
CSS
.container-stepper {
width: auto;
margin: 100px auto;
}
.stepwise-wrapper {
counter-reset: step;
}
.stepwise-wrapper li {
list-style-type: none;
width: 25%;
float: left;
font-size: 12px;
position: relative;
text-align: center;
text-transform: uppercase;
color: #7d7d7d;
}
.stepwise-wrapper li:before {
width: 30px;
height: 30px;
content: counter(step);
counter-increment: step;
line-height: 30px;
border: 2px solid #7d7d7d;
display: block;
text-align: center;
margin: 0 auto 10px auto;
border-radius: 50%;
background-color: white;
}
.stepwise-wrapper li:after {
width: 100%;
height: 2px;
content: '';
position: absolute;
background-color: #7d7d7d;
top: 15px;
left: -50%;
z-index: -1;
}
.stepwise-wrapper li:first-child:after {
content: none;
}
.stepwise-wrapper li.active {
color: green;
}
.stepwise-wrapper li.active:before {
border-color: #55b776;
}
.stepwise-wrapper li.active + li:after {
background-color: #55b776;
}