title: Why is my nav bar (flex-box) not collapsing when I resize the browser window to a smaller size?
body: <p>I am tinkering with FlexBox to design my site, and I am trying to apply these techniques to make a responsive and collapsable nav bar (ideally for mobile users). How can I achieve this? Apparently the flex commands in the .nbar class are not working.</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>*{
    margin:0;
    font-family: 'Roboto', sans-serif;
  }
  .wrapper{
    width:100%;
    min-width: 960px;
    margin:0 auto;
    /*display:flex;
    align-items: flex-end;
    this is just for the night vision button to position better
    */
  }
  .parent{
    display:flex;
    flex-wrap: wrap;
    /*these two at the bottomr are optional to
    center them on the page
    max-width: 960px;
    margin:0 auto;*/
    max-width: 960px;
    margin: auto;
  }
  
  /*WE MISSED THE .ONE SELECTOR*/
  .one{
    flex-grow: 1;
  }
  .title{
    text-align: center;
    position:relative;
    font-size: 50px;
    top:20px;
  }
  
  .header{
    height:100px;
    width:100%;
    order:0;
    border-bottom: 1px solid rgb(0,0,0);
  }
  .nav{
    width:100%;
    /*min-width: 900px;*/
    height:40px;
    border-bottom: 1px solid rgb(0,0,0);
    order:1;
  }
  .banner{
    width:100%;
    min-width: 960px;
    height:500px;
    color:white;
    background-color: rgb(0,0,0);
    order:3;
  }
  .boxOne{
    width:45%;
    min-width: 200px;
    height:300px;
    border-right: 1px solid rgb(0,0,0);
    order:4;
    padding: 5px;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 10px;
    border-left: 1px solid rgb(120,120,120);
    text-align: justify;
  }
  .boxTwo{
    width:45%;
    min-width: 200px;
    height:300px;
    order:4;
    padding: 5px;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 10px;
    border-right: 1px solid rgb(120,120,120);
  }
  .footer{
    width:100%;
    height:100px;
    border-top: 1px solid rgb(0,0,0);
    border-bottom: 1px solid rgb(0,0,0);
    border-right: 1px solid rgb(120,120,120);
    border-left: 1px solid rgb(120,120,120);
    order:5;
  }
  .nbar{
  display:flex;
  flex-wrap: wrap;
  align-items: stretch;
  flex-flow: wrap;
  }
    .two{
      flex-grow: 0;
    }
        .home {
          order:1;
        }
        .services {
          order:2;
        }
        .testimonials {
          order:3;
        }
        .portfolio {
          order:4;
        }
        .contact {
          order:5;
        }
  li {
    display:inline-flex;
    padding:10px 40px 10px 60px;
    font-size: 15px;
  }
  a:link {
      text-decoration: none;
      color:black;
  }
  
  a:visited {
      text-decoration: none;
      color:black;
  }
  a:hover {
    text-decoration: underline;
  }
  .disc{
    padding-left: 5px;
    padding-top: 5px;
    font-size: 10px;
    color: rgb(150,150,150);
  }
  .people{
    overflow: hidden;
    height:500px;
    width:960px;
  }
  /*.popup {
    background-color: white;
    height: 20px;
    width:90px;
    border: 1px solid rgb(255, 0, 0);
    position:fixed;
    bottom:0;
  }*/</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;!-- dockmann --&gt;
  &lt;head&gt;
    &lt;link href="https://fonts.googleapis.com/css?family=Roboto:300" rel="stylesheet"&gt;
    &lt;link rel="stylesheet" type="text/css" href="style.css" /&gt;
    &lt;script src="jquery-3.1.1.min.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="script.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;div class="wrapper"&gt;
      &lt;div class="parent"&gt;
        &lt;div class="one header"&gt;
          &lt;p class="title"&gt;DOCKMANN&lt;/p&gt;
        &lt;/div&gt;
        &lt;!-- end header --&gt;
        &lt;div class="one nav"&gt;
          &lt;ul class="nbar"&gt;
            &lt;li class="two home"&gt;
              &lt;a href="www.dockmann.com"&gt;HOME&lt;/a&gt;
            &lt;/li&gt;
            &lt;li class="two services"&gt;
              SERVICES
            &lt;/li&gt;
            &lt;li class="two testimonials"&gt;
              TESTIMONIALS
            &lt;/li&gt;
            &lt;li class="two portfolio"&gt;
              PORTFOLIO
            &lt;/li&gt;
            &lt;li class="two contact"&gt;
              CONTACT
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;/div&gt;
        &lt;!-- end nav --&gt;
        &lt;div class="one banner"&gt;
          &lt;img class="people" src="image/macdesk.jpg" /&gt;
        &lt;/div&gt;
        &lt;!-- end banner --&gt;
        &lt;div class="one boxOne"&gt;
          &lt;h2&gt;Who we are...&lt;/h2&gt;
          &lt;br /&gt;
          Filler
        &lt;/div&gt;
        &lt;!-- end boxOne --&gt;
        &lt;div class="one boxTwo"&gt;
          boxTwo
        &lt;/div&gt;
        &lt;!-- end boxTwo --&gt;
        &lt;div class="one footer"&gt;
        &lt;p class="disc"&gt;
        filler
        &lt;/p&gt;
        &lt;/div&gt;
        &lt;!-- end footer --&gt;
  
      &lt;/div&gt;
  
      &lt;!-- &lt;button class="popup"&gt;
        Night Vision!
      &lt;/div&gt; --&gt;
    &lt;/div&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>