Having difficulty using a flexbox
container with bootstrap 4
to center align my elements horizontally.
This is the code snippet I have been working on:
<div class="d-flex flex-column align-items-center">
<img class="rounded-circle" height="50">
<a href="https://some.external.link" target="_blank">
Follow me
<i class="fa fa-external-link "/>
</a>
</div>
The above code works well unless the anchor's text wraps around. In that case, the link-text loses its centered alignment and appears left-aligned instead.
Despite trying multiple different configurations on the container and experimenting with item-wrappers for the image and anchor, the issue still persists when the link-text is wrapped.