I have the following code. I'm trying to draw three outlines of one single. For the first level, I used the border, and for the second I used shadows.
Is it possible to use the third level using only CSS? I can achieve this using another div, but I am looking for a way to do this with one div.
#sample {
height: 100px;
width: 100px;
border-radius: 50%;
background: #f1f1f1;
border: 4px solid #ccc;
-webkit-box-shadow: 0px 0px 0px 2px rgba(68, 68, 68, 1);
-moz-box-shadow: 0px 0px 0px 2px rgba(68, 68, 68, 1);
box-shadow: 0px 0px 0px 2px rgba(68, 68, 68, 1);
}
<div id="sample">
</div>
Run codeHide result
source
share