SyntaxFix
Write A Post
Hire A Developer
Questions
This one works well if you know height and width:
img { object-fit: cover; border-radius: '50%'; width: 100px; height: 100px; }
via https://medium.com/@chrisnager/center-and-crop-images-with-a-single-line-of-css-ad140d5b4a87