JSFiddle - React, Tailwind, and code Playground
HTML
<header>
<h1> My Website </h1>
</header>
CSS
header
{
padding: 0px;
background-color: BCCCCC;
color: black;
font-weight: bold;
text-align: center;
height:100px;
background:red;
display:table;
width:100%;
}
h1{
display:table-cell;
text-align:center;
vertical-align:bottom;
}