Images can be responsive to fit the parent's width, and also can be customised to be round shaped
You can add class img-responsive to make your image fit the width of container. It's height will get adjusted by keeping the aspect ratio same. If you want to change the aspect ratio, you will have to crop the image.
<div class="img-container"> | |
<img | |
class="img-responsive" | |
src="./assests/Images/example_image3.jpg" | |
alt="" | |
/> | |
</div> |
You can add class img-round to make your image round shaped.
<div class="avatar-xl"> | |
<img | |
class="img-responsive img-round" | |
src="./assests/Images/example_image2.jpg" | |
alt="" | |
/> | |
</div> | |