<div class="progress-container">
<div class="progress-step active">
<div class="circle">1</div>
<span>Account</span>
</div>
<div class="progress-step">
<div class="circle">2</div>
<span>Payment</span>
</div>
<div class="progress-step">
<div class="circle">3</div>
<span>Confirmation</span>
</div>
</div>
.progress-container {
margin: 30px auto 0;
display: flex;
align-items: center;
justify-content: center;
width: 75%;
position: relative;
}
.progress-step {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
position: relative;
flex: 1;
}
.progress-step::after {
content: '';
border-bottom: 8px dotted #d3d8d4;
width: calc(100% - 40px - 10px * 2);
top: calc(40px / 2 - 8px / 2);
left: calc(50% + 40px / 2 + 10px);
position: absolute;
}
.progress-step.active::after {
border-bottom: 8px dotted #ff5c03;
}
.progress-step:last-child::after {
content: unset;
}
.circle {
width: 40px;
height: 40px;
border-radius: 50%;
background-color: #fff;
border: 2px solid #d3d8d4;
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 8px;
font-weight: bold;
font-size: 16px;
z-index: 9000;
}
.progress-step.active .circle {
background-color: #ff5c03;
border: 2px solid #ff5c03;
color: #fff;
}
.progress-step span {
font-size: 16px;
font-weight: 600;
color: #090503;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.