JSFiddle - React, Tailwind, and code Playground

by shadeglare

HTML

<div id="container">
    <div id="head">1</div>
    <div id="content"></div>
    <div id="foot"></div>
</div>

CSS

body, html {
    height: 100%;
    width: 100%;
    margin: 0;
    padding 0;
    font-family: Helvetica;
    color: #666;
}
#container {
    position: relative;
    margin: 0 auto;
    width: 30em;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    height: 100%;
}
#head, #content, #foot {
    border-bottom: 1px solid #ddd;
    position: absolute;
    width: 100%;
}
#head {
    height: 5em;
    top: 0;
}
#content {
    box-sizing: border-box;
    top: 5em;
    bottom: 5em;
}
#foot {
    height: 5em;
    bottom: 0;
}