I'm currently working on creating a horizontal counter to indicate the step in progress. We are using bootstrap 4 for this project. The CSS is functioning correctly without bootstrap, but once it is added to the project, it's not aligning vertically. The text appears below the circle.
The number needs to be centered both vertically and horizontally within the circle.
Any suggestions on how to make this CSS work within the bootstrap project?
HTML
.steps {
margin: auto;
text-align: center;
font-size: 40px;
text-align: center !important;
vertical-align: middle !important;
}
.steps div{
display: inline-block;
}
.steps .circle {
border-radius:100px;
width: 75px;
height: 75px;
text-align: center !important;
vertical-align: middle !important;
line-height: 75px;
}
.steps .separator {
width: 100px;
margin:0px -5px 0px -5px;
vertical-align: middle !important;
}
.steps .done {
color:#35FF8B;
}
.steps .done .circle {
border:3px solid #35FF8B;
background:#385463;
}
.steps .done .separator {
border:4px solid #35FF8B;
}
<div class="steps">
<div class="done">
<div class="circle">
1
</div>
<div class="separator"></div>
</div>
</div>