Creating a bottom nav with CSS Flexbox

I needed to create a bottom nav (like what's used in many mobile apps) in CSS. Here's how I did it:

(CodePen)

<div class="container">
  <div class="content">
    <p>bar</p>
    <p>bar</p>
    <p>bar</p>
  </div>
  <nav>
    <p>foo</p>
    <p>foo</p>
    <p>foo</p>  
    <p>foo</p>
  </nav>
</div>
.container {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1 1 auto;
  overflow: auto;
  align-self: stretch;
}