Here is the code I have been working on. My goal is to apply three different levels of outlines to a single div element. I successfully added borders for the first level and shadows for the second.
Is it possible to add a third level using only CSS? I know I could achieve this by introducing another nested div, but I am interested in finding a solution that involves just 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>