JSFiddle - React, Tailwind, and code Playground
HTML
<div id="container">
<div id="header">
header
</div>
<div id="content">
Your content goes here
</div>
<div id="footer">
Footer here
</div>
</div>
CSS
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body, html {
height: 100%;
}
#container {
background: #f00; /* styling only */
width: 100%;
margin: 0 auto;
position: relative;
min-height: 100%;
height: 100%;
}
#content {
padding-top: 100px;
width: 980px;
background-color: #FFF;
margin: 0 auto;
height: 100%;
-webkit-box-shadow: 0px 1px 3px rgba(27, 57, 50, 0.44);
-moz-box-shadow: 0px 1px 3px rgba(27, 57, 50, 0.44);
box-shadow: 0px 1px 3px rgba(27, 57, 50, 0.44);
-moz-border-radius: 5px;
border-radius: 5px;
position:relative;
}
#footer {
position: absolute;
left: 0;
bottom: 0;
height: 100px;
width: 100%;
background: #0f0;
}
#header {
position: absolute;
top:0;
height: 100px;
width: 100%;
background: #0f0;
z-index:1
}