JSFiddle - React, Tailwind, and code Playground
HTML
<div class="wrap">
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
</div>
CSS
* {
margin: 0;
padding: 0;
border: 0;
font-size: 0;
box-sizing: border-box;
}
.wrap {
display: block;
margin: 100px auto 100px auto;
width: 100px;
height: 100px;
}
.circle {
width: 100px;
height: 100px;
border-radius: 50%;
border: 3px solid #000;
position: absolute;
}
.circle:nth-child(1) {
background: silver;
position: relative;
}
.circle:nth-child(2) {
background: red;
position: relative;
top: -100px;
left: 100px;
}
.circle:nth-child(3) {
background: green;
position: relative;
top: -150px;
left: 50px;
}
.circle:nth-child(4) {
background: yellow;
position: relative;
top: -200px;
}
.circle:nth-child(5) {
background: pink;
position: relative;
top: -350px;
right: 50px;
}
.circle:nth-child(6) {
background: lightblue;
position: relative;
top: -500px;
right: 100px;
}
.circle:nth-child(7) {
background: brown;
position: relative;
}