JSFiddle - React, Tailwind, and code Playground
by sc0rp10
HTML
<div class="p">
<div class="c">
<p class="d"></p>
</div>
</div>
<p class="foo"></p>
CSS
div {
border-radius: 100%;
}
.p {
background-color: #ebacca;
width: 100px;
height: 100px;
position: relative;
}
.c {
border: 2px solid #fff;
width: 50px;
height: 50px;
position: absolute;
top: 50%;
left: 50%;
margin-left: -25px;
margin-top: -25px;
box-sizing: border-box;
background-color: inherit;
}
.d {
background-color: inherit;
width: 30px;
height: 30px;
border: 1px solid #fff;
position: relative;
top: -8px;
left: 7px;
z-index: 666;
}
.foo {
position: absolute;
background-color: red;
width: 200px;
height: 50px;
top: 18px;
}