How can I make an image scale-up, center, and cover the parent container (I use this style for the user profile picture)?
.container{
width: 200px;
height: 200px;
border-radius: 100%;
overflow: hidden;
}
.container img{
width: 100%;
object-fit: cover;
}
<div class="container">
<img src="https://www.bkacontent.com/wp-content/uploads/2020/10/Depositphotos_336730000_l-2015.jpg"> </img>
</div>