JSFiddle - React, Tailwind, and code Playground
HTML
<body>
<div id="wrapper">
<div id="navbar"> nav would be here</div>
<div id="content">
<div id="body">
<div class="contentbox"></div>
<div id="push"></div>
</div>
<div id="footer">
<div id="footertext">
<p>footer content would go here</p>
</div>
</div>
</div>
</div>
</body>
CSS
html, body {
height: 100%;
}
body {
background-color: #D6E0D6;
}
}
#wrapper {
min-height: 100%;
width: 100%;
position: absolute;
}
#navbar {
width: 100%;
height: 150px;
background-color: #386633;
}
#content {
width: 100%;
position: relative;
margin: auto;
min-height: 100%;
}
#body {
position: relative;
margin-top: 10px;
min-height: 100%;
margin: 0 auto -80px auto;
}
#push, #footer {
height: 80px;
clear: both;
}
.contentbox {
background-color: white;
height: 300px;
width: 90%
margin: 10px 20px 10px 20px;
}
#footer {
width: 100%;
height: 80px;
color: #91CC87;
font-size: 10pt;
background-color: #386633;
line-height: 25px;
text-align: center;
position: relative;
clear: both;
}
#footertext {
position: relative;
top: 50%;
transform: translateY(-50%);
}