JSFiddle - React, Tailwind, and code Playground
HTML
<div>
<header>Header</header>
<nav>Navigation</nav>
<section>Chapter 1</section>
<section>Chapter 2</section>
<section>Chapter 3</section>
<section>Chapter 4</section>
<footer>Footer</footer>
</div>
CSS
* {
box-sizing: border-box;
}
div {
position: relative;
margin: 70px 10px 120px;
}
header{
position: fixed;
top: 0;
left: 0;
height: 70px;
width: 100%;
background-color: #ddd;
text-align: center;
z-index: 1;
}
nav {
position: absolute;
left: 0px;
width: 200px;
height: 300px;
border: 4px solid blue;
}
section {
height: 150px;
margin-left: 200px;
border: 4px solid green;
}
footer {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
height: 70px;
background-color: #aaa;
text-align: center;
}