I have a small rounded circle with a number inside inside a button. How can i center the span vertical inside the button?
<button class="btn btn-primary w-50 my-4">
Comments Moderation <span class="approve-counter rounded-circle bg-danger text-white text-center float-right">5</span>
</button>
CSS:
.approve-counter {
width: 20px;
height: 20px;
line-height: 20px;
}
As you can see, the red circle is not exactly vertical in the middle of the blue button
Fiddle: https://jsfiddle.net/vour83s9/