JSFiddle - React, Tailwind, and code Playground
HTML
<header>
I am the header!
</header>
<div class="content">
<p>I am some content</p>
<footer>
I am the footer.
</footer>
</div>
CSS
header {
height: 40px;
background-color: #ff00ff;
position: fixed;
top: 0;
width: 100%;
left: 0;
text-align: center;
line-height: 40px;
}
.content {
padding-top: 50px;
}
footer {
border-top: 1px solid #ccc;
margin-top: 10px;
padding: 5px 0
}