Having an issue with the alignment of the +
sign on the bootstrap button, it's not centered as shown in this image :
https://i.sstatic.net/lxacy.png.
Attempted to enclose the button
within a div
using
justify-content-center align-content-center text-center
classes.
.btn-plus {
display: inline-block;
background: url(https://via.placeholder.com/30) center no-repeat;
background-size: contain;
width: 30px;
height: 30px;
}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d6b4b9b9a2a5a2a4b7a696e2f8e0f8e7">[email protected]</a>/dist/css/bootstrap.min.css" integrity="sha384-zCbKRCUGaJDkqS1kPbPd7TveP5iyJE0EjAuZQTgFLD2ylzuqKfdKlfG/eSrtxUkn" crossorigin="anonymous">
<div class="d-flex justify-content-center align-content-center text-center m-3">
<button type="button" class="btn btn-primary btn-plus"></button>
</div>
Also attempted adding background-position: center;
to the btn-plus
in the inspector, but none of the methods tried solved the issue.
Seeking guidance on how to resolve this problem.