Currently, I am attempting to create a set of steps using only CSS. Here is what I have achieved so far:
https://i.sstatic.net/sCRzr.jpg
However, I am facing an issue with removing the excess line where the red mark is located.
<ul class="step">
<li class="first">
<span>1</span>
</li>
<li class="second">
<span>2</span>
</li>
<li class="third">
<span>3</span>
</li>
<li class="last ">
<span>4</span>
</li>
</ul>
section.steps .steps-box .steps-container ul.step{
margin: 0;
list-style: none;
border-top: 1px dotted #000;
}
section.steps .steps-box .steps-container ul.step > li{
float: left;
width: 25%;
margin-top: -40px;
padding: 0 10px;
}
section.steps .steps-box .steps-container ul.step li span{
display: block;
margin: 0 auto;
height: 80px;
width: 80px;
line-height: 80px;
border-radius: 80px;
border: 1px solid;
overflow: hidden;
text-align: center
}
I am looking to have a line connecting steps from 1 to 4 only, but I want to achieve this without using images. Can anyone provide guidance on how to accomplish this?
Your assistance is greatly appreciated!