5
you can create an img inside a div with "overflow:Hidden;"
.circle {
background-color: #aaa;
border-radius: 50%;
width: 150px;
height: 150px;
overflow: hidden;
position: relative;
}
.circle img {
position: absolute;
bottom: 0;
width: 100%;
}
<div class="circle">
<img src="https://i.stack.imgur.com/atUuf.png">
</div>
As long as the image has a transparent background, just use the
background-color
and theborder-radius
. The Radius border roundes the edges, so just change until a circle as you want, and the gray background is just do with the background color. You can use thergba
to define transparency if the ash is to be transparent.– Raizant