JSFiddle - React, Tailwind, and code Playground
HTML
<div class="center">
<div class="home2">
<div class="home2_first">
<img src="Images/home_pic1.png" />
<p>Lorem Ipsum is simply dummy text!</p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s</p>
</div>
</div>
<div class="home2">
<div class="home2_second">
<img src="Images/home_pic2.png" />
<p>Lorem Ipsum is simply dummy text!</p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s</p>
</div>
</div>
</div>
CSS
.home2 {
margin: 0 auto;
width: 50%;
text-align: center;
display: table-cell;
background-color: red;
height: 400px;
}
.home2 p {
font-family: 'cabinRegular', arial, sans-serif, verdana;
color: #000000;
font-size: 18px;
}
.center {
display: table;
margin: 0 auto;
width: 100%;
background-color: blue;
}
.home2_first img {
margin: 0 auto;
padding: 0;
}
.home2_second img {
margin: 0 auto;
padding: 0;
}