title: How to make flex items that are also flex containers stack horizontally?
body: <p>I'm trying to create a horizontal menu. My understanding of flexbox is that if I want to have elements stack horizontally, I should apply the CSS rules</p>
  
  <pre><code>display: flex
  flex-direction: row;
  </code></pre>
  
  <p>However, in the following page, the boxes stack vertically</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>div#navcontainer {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
  }
  
  div.navitem {
    color: #292929;
    height: 45px;
    width: 150px;
    padding: 5px;
    border-color: 292929;
    border-width: 2px;
    border-style: solid;
  
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="header"&gt;
    &lt;div id="navcontainer"&gt;
      &lt;div class="navitem"&gt;&lt;a href="./index.html"&gt;home&lt;/a&gt;&lt;/div&gt;
      &lt;div class="navitem"&gt;&lt;a href="./about.html"&gt;about&lt;/a&gt;&lt;/div&gt;
      &lt;div class="navitem"&gt;&lt;a href="./services.html"&gt;services&lt;/a&gt;&lt;/div&gt;
      &lt;div class="navitem"&gt;&lt;a href="./contact.html"&gt;contact&lt;/a&gt;&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>How do I make css flex-items which are themselves flex containers of other elements stack vertically?</p>