Struggling to fit my image into a circular icon with dimensions of 64px by 64px. The image appears full and in a defined frame, but does not shrink or take on a circular shape.
- The image is displayed in its entirety within a frame of 64x64 pixels
- The image remains at its original size without shrinking
- The desired circular shape is not achieved
You can view what I have tried so far here:
https://jsfiddle.net/soniya_jain/esu413wv/5/
Below is the code snippet that I am using:
<html>
<img src="https://www.iphonehacks.com/wp-content/uploads/2019/06/Apple-ios-13-home-screen-iphone-xs-06032019.jpg" class="rounded imgProfile" height="55px" width="55px" alt="avatar">
</html>
<style>
.imgProfile {
display: block;
object-fit: contain;
}
</style>
If you have any ideas or suggestions, please feel free to share them.