JSFiddle - React, Tailwind, and code Playground

HTML

<div class="div-table">
 <div class="div-row">
  <h2 class="text">
   meine Ăśberschrift
  </h2>  
 </div>
</div>

CSS

.div-table{
  display: table;
  background-color:green;
  height:300px;
  width: 300px;
}
.div-row{
  display: table-row;  
}
.text{
  display:table-cell;
  vertical-align: middle;
  text-align:center;
  font-size:3rem;
  color:#FFF;
}