I have the following HTML:
.line {
width: 100%;
height: 14px;
border-bottom: 1px solid lightgrey;
position: absolute;
}
.circle {
height: 24px;
width: 24px;
background-color: lightgrey;
border-radius: 50%;
display: inline-block;
}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="42202d2d36313630233202766c726c72">[email protected]</a>/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<div class="align-text-center">
<div class="row justify-content-center">
<div class="col-sm-1 text-center">
<div id="step-1" class="circle">
<div class="line"></div>
</div>
<p>Step 1</p>
</div>
<div class="col-sm-1 text-center">
<div id="step-1" class="circle">
<div class="line"></div>
</div>
<p>Step 2</p>
</div>
<div class="col-sm-1 text-center">
<div id="step-1" class="circle">
<div class="line"></div>
</div>
<p>Step 3</p>
</div>
</div>
</div>
This is currently the result:
https://i.sstatic.net/pAB5V.png
Not part of the code above, but I do know which step is the first and last.
How can I ensure that the line of the last step stays within the circle and doesn't extend beyond it?