Hi I want to make a simple chart (circle of fifths) using css and I can't figure out how to stack circles so they have same midpoint but different radius.
I've tried the following code but the circles have same starting point instead of midpoint.
.container {
position: absolute;
left: 50%;
top: 50%;
}
.circle {
border-radius: 50%;
border: 1px solid black;
position: absolute;
}
.circle:first-child {
width: 50px;
height: 50px;
}
.circle:nth-child(2) {
width: 80px;
height: 80px;
}
.circle:nth-child(3) {
width: 110px;
height: 110px;
}
.circle:nth-child(4) {
width: 140px;
height: 140px;
}
.circle:last-child {
width: 170px;
height: 170px;
}
<div class="container">
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
</div>
I am getting circles with common starting point but I need them stacked with common center.