CSS Crop Image to Circle
background-image: url("url");
width:100px;
height:100px;
background-size:contain;
background-position:center;
border-radius:50%;
Artyom Gabtraupov
background-image: url("url");
width:100px;
height:100px;
background-size:contain;
background-position:center;
border-radius:50%;
.image-cropper {
width: 100px;
height: 100px;
position: relative;
overflow: hidden;
border-radius: 50%;
}
img {
display: inline;
margin: 0 auto;
height: 100%;
width: auto;
}