I'm trying to draw a horizontal line between empty circles (no background), How can I draw a line from one circle to other to match exactly without entering the other circle or not reach it?
I did the sample using codepen
#wizard {
background-color: #eee;
display: inline-block;
padding: 15px;
}
#wizard .step {
display: inline-block;
width: 40px;
height: 40px;
background-color: transparent;
border: 1px solid #000;
border-radius: 50%;
text-align: center;
padding: 2px;
margin-right: 3em;
margin-left: 3em;
position: relative;
}
#wizard .step:after {
content: "";
display: block;
height: 1px;
background-color: #000;
position: absolute;
left: auto;
right: -100%;
width: 100%;
top: 50%;
}
#wizard .step:last-child:after {
display: none;
}
#wizard .step span {
padding: 11px;
display: block;
}
<div id="wizard">
<div class="step active">
<span>1</span>
</div>
<div class="step">
<span>2</span>
</div>
<div class="step">
<span>3</span>
</div>
</div>