I need to make a circle around a div
with photo, but my image is not centering on the expected circle, having this result:
Itriedtodothis:
#avatar {
margin: 0 auto;
background-image: url('http://i.stack.imgur.com/Dj7eP.jpg');
width: 70px;
height: 70px;
background-size: cover;
background-position: top center;
border-radius: 50%;
}
.circle {
margin: 0 auto;
display: block;
border: 2px solid rgb(161,196,66);
border-radius: 50%;
height: 80px;
width: 80px;
}
<span class="circle">
<div id="avatar"></div>
</span>