JSFiddle - React, Tailwind, and code Playground

by Manju06

HTML

<div class="x1">
    <div class="x2">
        <span>lol dude</span>
    </div>
  
</div>

CSS

.x1 {
    overflow:hidden;
    border:1px solid black;
}
.x1 .x2 {
    display:block;
    float:left;
    padding: 12.5%;
    width:auto;
    height:auto;
    border-radius:50%;
    -moz-border-radius:50%;
    -webkit-border-radius:50%;
    -khtml-border-radius: 50%;
    background:#eee;
    text-align:center;
    position: relative;
}
.x1 .x2 span {
    position: absolute;
    width: 100%;
    left: 0;
    top: 48%;
    line-height: 1em;
    height: 1em;
    font-size: 100%;
    overflow: hidden;
}

@media (max-width: 320px) 
{
    .x1 .x2 {padding: 50%;}
}

@media (min-width: 321px) and (max-width: 800px)
{
    .x1 .x2 {padding: 25%;}
}

@media (min-width: 801px)
{
    .x1 .x2 {padding: 12.5%;}
}