<div class="page-wrap">
  <header class="header">
    <h1>Header goes here</h1>
  </header>

  <div class=" sidebar left-sidebar">
    <nav class="side-nav">
      <h2>Logo </h2>
      <ul>
        <li><a href="#">Lots of menu items</a></li>
        <li><a href="#">Lots of menu items</a></li>
        <li><a href="#">Lots of menu items</a></li>
        <li><a href="#">Lots of menu items</a></li>
        <li><a href="#">Lots of menu items</a></li>
        <li><a href="#">Lots of menu items</a></li>
        <li><a href="#">Lots of menu items</a></li>
        <li><a href="#">Lots of menu items</a></li>
        <li><a href="#">Lots of menu items</a></li>
        <li><a href="#">Lots of menu items</a></li>
        <li><a href="#">Lots of menu items</a></li>
        <li><a href="#">Lots of menu items</a></li>
        <li><a href="#">Lots of menu items</a></li>
        <li><a href="#">Lots of menu items</a></li>
        <li><a href="#">Lots of menu items</a></li>
        <li><a href="#">Lots of menu items</a></li>
        <li><a href="#">Lots of menu items</a></li>
        <li><a href="#">Lots of menu items</a></li>
        <li><a href="#">Lots of menu items</a></li>
        <li><a href="#">Lots of menu items</a></li>
        <li><a href="#">Lots of menu items</a></li>
        <li><a href="#">Lots of menu items</a></li>
        <li><a href="#">Lots of menu items</a></li>
        <li><a href="#">Lots of menu items</a></li>
        <li><a href="#">Lots of menu items</a></li>
        <li><a href="#">Lots of menu items</a></li>
        <li><a href="#">Lots of menu items</a></li>
        <li><a href="#">Lots of menu items</a></li>
        <li><a href="#">Lots of menu items</a></li>
        <li><a href="#">Lots of menu items</a></li>
        <li><a href="#">Lots of menu items</a></li>
        <li><a href="#">Lots of menu items</a></li>
      </ul>
    </nav>
  </div>
  <div class="content">
    <h2>Main Content</h2>
    <p>main content goes here : main content goes here : main content goes here : main content goes here : main content goes here : main content goes here : main content goes here : main content goes here : </p>
    <p>main content goes here : main content goes here : main content goes here : main content goes here : main content goes here : main content goes here : main content goes here : main content goes here : </p>
    <p>main content goes here : main content goes here : main content goes here : main content goes here : main content goes here : main content goes here : main content goes here : main content goes here : </p>
    <p>main content goes here : main content goes here : main content goes here : main content goes here : main content goes here : main content goes here : main content goes here : main content goes here : </p>

  </div>

  <footer class="footer">
    <p>Footer content goes here</p>
  </footer>

</div>
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: sans-serif;
}
html {
  box-sizing: border-box;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}

.page-wrap {
  max-width: 2100px;
  min-height: 100%;
  background: #eee;
  margin: auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  grid-template-rows: 5rem 1fr auto;
  grid-template-areas:
    "fixed header"
    "fixed main"
    "fixed footer";
}
.header {
  grid-area: header;
  align-self: center;
}
.left-sidebar {
  grid-area: fixed;
}
.content {
  grid-area: main;
}
.footer {
  grid-area: footer;
}

.content,
.header,
.footer {
  background: #f9f9f9;
  padding: 10px;
}
.content {
  border-top: 1px solid #999;
  border-bottom: 1px solid #999;
}
.left-sidebar {
  padding: 0;
}

/* side nav */
.side-nav {
  position: fixed;
  bottom: 0;
  top: 1px;
  width: 320px;
  z-index: 99;
  overflow: auto;
  border-right: 1px solid #999;
}

.side-nav h2 {
  position: -webkit-sticky; /* needed for ios*/
  position: sticky;
  top: 0;
  color: #000;
  padding: 10px;
  font-size: 2rem;
  margin: 0;
  border-bottom: 1px solid #999;
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
}
.side-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.side-nav a {
  text-decoration: none;
  color: #333;
  display: block;
  border-bottom: 1px solid #aaa;
  border-top: 1px solid #fff;
  padding: 1rem;
}
.side-nav a:hover {
  background: #000;
  color: #fff;
}

@media screen and (max-width: 980px) {
  .page-wrap {
    grid-template-columns: auto;
    grid-template-areas:
      "header"
      "main"
      "footer";
  }
  .sidebar {
    display: none;
  }
}
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.