I managed to get this effect using the pseudo-element selector ::before. ( ::afterwill work just as well)
Here is the demo
Given an element:
<div class="circle"></div>
Apply the following CSS rule:
.circle {
position: relative;
float: left;
border: 2px dotted black;
background-color: white;
padding: 10px;
border-radius: 50%;
}
.circle::before {
position: absolute;
display: block;
content: ' ';
background-color: #6abde7;
width: 150px;
height: 150px;
border-radius: 50%;
}
You can configure a few rules above. They are mainly just to shape the circle for demonstration. I commented on those that control circle styles.
Explanation
CSS. , . (, <input>)