div.container{
border:2px dashed blue;
position:relative;
}
span.parent{
display:inline-block;
width:40px;
height:40px;
border:2px solid black;
border-radius:50%;
text-align: center;
position:absolute;
right:20px;
top:10px;
}
span.child{
background:yellow;
width:90%;
height:90%;
display:inline-block;
border-radius:50%;
left:5%;
top:5%;
position:relative;
}
<div class="container">
<p>some content here</p>
<span class="parent"><span class="child"></span></span>
</div>
I want to make a circle with a border, but the filling is not centered correctly. How can I adjust this?