Looking for a solution to resolve an issue with the following Bootstrap 4 markup:
<div class="col-3 d-flex flex-column">
<img class="align-self-center" src="#"/>
</div>
The problem arises when using align-self-center
in a flex container, as it centers the image and causes stretching. Instead of centering, I would like the image to be align-self-left
(left aligned), but this also results in stretching.
Any suggestions on how to achieve the desired alignment without causing stretching?