JSFiddle - React, Tailwind, and code Playground

HTML

<ul>
    <li>
        <p>Some Text</p>
    </li>
    <li>
        <p>A bit more text that goes on 2 lines</p>
    </li>
    <li>
        <p>Even more text that demonstrates how lines can span multiple lines</p>
    </li>
</ul>

CSS

p {
    text-align: center;
    position: relative;
    top: 50%;
    -ms-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}
li{ 
    width: 200px;
    height: 200px;

    margin: 0 1em 1em 0;
    padding: 1em;
    
    background: tomato;
    border: 1px solid #333;
    color: #fff;
    font-family: "Helvetica";
    font-size: 0.9em;
}