JSFiddle - React, Tailwind, and code Playground
HTML
<div class="bg_class">
My text goes here...My text goes here...My text goes here...My text goes here... My text goes here...My text goes here...My text goes here...My text goes here...
</div>
CSS
.bg_class
{
background: red;
width: 300px;
height: 200px;
text-align: center;
margin: 0 auto;
}