JSFiddle - React, Tailwind, and code Playground
HTML
<div class="content">
<div class="circle blue"> </div>
</div>
<div class="content">
<div class="circle blue">Blue</div>
<div class="circle blue"> </div>
<div class="circle blue"> </div>
<div class="circle blue"> </div>
</div>
<div class="content">
<div class="circle blue"> </div>
<div class="circle blue"> </div>
</div>
CSS
body {
display: block;
margin-left: auto;
margin-right: auto;
background: #f1f1f1;
}
.content {
display: inline-block;
margin: 20px auto;
text-align: center;
vertical-align: middle;
width: 200px;
}
.content h1 {
text-transform: uppercase;
font-weight: 700;
margin: 0 0 40px 0;
font-size: 25px;
line-height: 30px;
}
.circle {
width: 100px;
height: 100px;
line-height: 100px;
border-radius: 50%; /* the magic */
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
text-align: center;
color: white;
font-size: 16px;
text-transform: uppercase;
font-weight: 700;
margin: 0 auto 20px;
}
.blue {
background-color: #052D72;
}
.green {
background-color: #16a085;
}
.red {
background-color: #e74c3c;
}