JSFiddle - React, Tailwind, and code Playground

by ferne97

HTML

<div class="large-6 columns">
    <div id='box1'>
        <div id='text1' class="inner-box">
            Name
        </div>
        <div id='text3' class="inner-box">
            LastName
        </div>
    </div>
</div>

CSS

#box1 {
    float: left;
    height: 125px;
    margin-top: 30px;
    margin-bottom: 30px;
    clear: none;
    width: 125px;
    border-top-left-radius: 95px;
    border-top-right-radius: 95px;
    border-bottom-right-radius: 95px;
    border-bottom-left-radius: 95px;
    background-color: rgb(232, 68, 58);
    position:relative;
    overflow:visible;
}

#text1 {
    min-width: 0.5em;
    width: 28%;
    color: white;
}

#text3 {
    min-width: 0.5em;
    width: 72%;
    color: black;
}

.inner-box {
    float: left;
    margin-top: 53px;
    text-align: right;
    font-weight: 400;
    font-size: 1em;
    line-height: 1em;
}