JSFiddle - React, Tailwind, and code Playground

by Khalil Zhang

HTML

<div id="main">Main Content is fully liquid. It takes all the remaining space on the line after the widths of "leftCol" and "rightCol" are taken into account. Alternatively, grids can be used to break up the main content area for fully fluid layouts.</div>
<div id="nav">Left column is 15% by default. It can be extended by several classes to allow for additional layouts.</div>
<div id="sidebar">The right column is by default 20% wide. It can be extended via all the same classes that are available to right column.</div>
<div id="footer">
    	<h2>Foot</h2>

    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>

CSS

html, body {
    margin:0;
}
#nav {
    background-color: red;
    position:absolute;
    top:0;
    left:0;
    width:15%;
}
#sidebar {
    background-color:yellow;
    position:absolute;
    top:0;
    right:0;
    width: 20%;
}
#main {
    margin: 0 20% 0 15%;
    padding: 0 10px;

}
#footer {
    text-align:center;
    margin: 0 20% 0 15%;
    background-color: gray;
}