The text-end
class is functioning, but it's not aligned completely to the right.
<div class="top-bar">
<div class="container">
<div class="row">
<div class="col-12 text-end">
<p><a href="teL: 0612345678"> Call us </a></p>
</div>
</div>
</div>
</div>
According to the Bootstrap 5 documentation...
"Rows serve as containers for columns. Each column has horizontal padding
(gutter) that controls the spacing between them. This padding
is offset by negative margins within rows to ensure proper alignment of column content."
Therefore, the col-12
should be placed inside a row
element.
<div class="top-bar">
<div class="container">
<div class="row">
<div class="col-12 text-end">
<p><a href="teL: 0612345678"> Call us </a></p>
</div>
</div>
</div>
</div>
See Demo