<div>
<img src="xxxx" />
</div>
div{
width:100px;
height:100px;
img {
width:100%;
object-fit:cover
}
}
div{
width:100px;
height:100px;
img {
width:100%;
object-fit: none;
object-position: center;
}
}
<div>
<img src="xxxx" />
</div>
div{
width:100px;
height:100px;
img {
width:100%;
object-fit:cover
}
}
div{
width:100px;
height:100px;
img {
width:100%;
object-fit: none;
object-position: center;
}
}