JSFiddle - React, Tailwind, and code Playground
HTML
<div class="tab-header">
<span class="step active">1</span>
<span class="step">2</span>
<span class="step">3</span>
</div>
CSS
html {
font-family: calibri;
}
.tab-header {
width: 400px;
position: relative;
}
.step {
width: 45px;
height: 45px;
display: block;
float: left;
text-align: center;
font-size: 30px;
line-height: 42px;
border-radius: 50%;
border: 2px solid #99958E;
position: relative;
margin-left: 40px;
}
.step:first-child {
margin-left: 0;
}
.step:first-child:before,
.step:last-of-type:after {
display: none;
}
.step:before,
.step:after {
width: 40px;
height: 2px;
content: " ";
background-color: #99958E;
position: absolute;
top: 20px;
}
.step:before {
left: -44px;
}
.step:after {
right: -42px;
}
.step.active {
background-color: #000;
color: #fff;
}
.step.active:before {
}