6
I need to circle around a div
with photo, however my image is not centering on the expected circle, having this result:
I tried to do it that way:
#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>