3
Good morning, I’m trying to solve a problem: I have a circular div and when I insert an image it gets cropped:
html
<div class="side-menu-user-info">
<div class="side-menu-user-photo">
</div>
</div>
css
.side-menu-user-info{
background: #FFF;
display: block;
height: 190px;
border-bottom: 1px solid rgb(155, 158, 162);
position: relative;
}
.side-menu-user-photo {
border-radius: 50%;
width: 40%;
height: 100px;
margin: 0 auto;
position: relative;
box-shadow: 1px 1px 10px;
background-image: url("user-logo.png")
}
Otavio, exactly what I needed, but when I try to use my image it overlaps the div and is on top!
– Fernando Munhoz
How are you doing? just changed the image inside the tag?
– OtavioCapel
Exactly, I used exactly its shape, but inside its <img> tag I put my image
– Fernando Munhoz
creates a jsfidlle and sends me to see what happens
– OtavioCapel
https://jsfiddle.net/sp7czfx2/1/# 

– Fernando Munhoz