I am facing an issue with a span in an input group that has a minimum width of 6rem. This is causing the text to not be centered, as spans typically adjust to the width of the text itself.
.input-group-text {
min-width: 6rem;
}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="7c1e1313080f080e1d0c3c49524d524f">[email protected]</a>/dist/css/bootstrap.min.css" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<div class="col input-group mb-3 d-flex justify-content-center">
<span class="input-group-text">Ending</span>
<button>...</button>
</div>
We can observe that the text "Ending" is not centered in the output. Applying 'text-center' to the span or 'text-align: center;' to the input-group CSS does not resolve the issue.