JSFiddle - React, Tailwind, and code Playground
HTML
<section>
<div>
<p>test</p>
<p>testinggg</p>
</div>
</section>
CSS
section {
background-color: rgba(0,0,0,0.2);
}
div {
margin-left: auto;
margin-right: auto;
}