JSFiddle - React, Tailwind, and code Playground
HTML
<article>
<header>header</header>
<section>content</section>
<footer>footer</footer>
</article>
CSS
html, body {
height: 100%;
margin: 0px;
padding: 0px;
}
article, header, section, footer {
display: block;
width: 100%;
}
article {
position: relative;
height: 100%;
padding: 100px 0px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
header, footer {
position: absolute;
height: 100px;
background-color: green;
}
header {
top: 0px
}
footer {
bottom: 0px;
}
section {
height: 100%;
background-color: red;
}