title: Fixing navbar element wrapping in materializecss navbar
body: <p>My navbar looks like this:</p>
  
  <pre><code>&lt;div class="navbar-fixed" id="navigation"&gt;
      &lt;ul id="alert_type_nav_drop_down" class="dropdown-content"&gt;
      &lt;/ul&gt;
  
      &lt;nav&gt;
          &lt;div class='nav-wrapper'&gt;
              &lt;ul id='nav-mobile' class='left'&gt;
              &lt;li&gt;&lt;a href='/'&gt;&lt;img src='http://vignette2.wikia.nocookie.net/gtawiki/images/9/9a/PlayStation_1_Logo.png/revision/latest?cb=20100130082645' height='25px'&gt;&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href='/'&gt;Test&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href='/'&gt;Another Test&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href='/'&gt;Heyyy&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href='/'&gt;Whyyy&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href='/'&gt;Okkkkkk&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href='/'&gt;Los Angeles&lt;/a&gt;&lt;/li&gt;
              &lt;/ul&gt;
              &lt;a class="right black-text valign-wrapper"&gt;&lt;img class="circle responsive-img" width=50px
                                                                             src="http://www.stockvault.net/blog/wp-content/uploads/2013/11/Portrait-8.jpg"&gt;&lt;/a&gt;
          &lt;/div&gt;
      &lt;/nav&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>fiddle: <a href="https://fiddle.jshell.net/g3mvhvdk/" rel="nofollow noreferrer">https://fiddle.jshell.net/g3mvhvdk/</a></p>
  
  <p>The problem is that when the window size is too small, elements wrap around into the body of the page like so:</p>
  
  <p><a href="https://i.stack.imgur.com/SOjt2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SOjt2.png" alt="enter image description here"></a></p>
  
  <p>When it normally looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/eQzs1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eQzs1.png" alt="enter image description here"></a></p>
  
  <p>What's a good way to fix this problem? Should I make the elements horizontally scrollable?</p>
  
  <p>As per suggestions in the comment, I've added the following:</p>
  
  <pre><code>&lt;div class="navbar-fixed hide-on-med-and-down" id="navigation"&gt;
  </code></pre>
  
  <p>which will hide my nav bar when it resizes to be something small enough, my question is, how do I show the hamburger if the navbar's hidden? Is there a helper "show-on-med-and-down" class? I suppose the bigger question is, is there an elegant way to switch from showing a navbar to showing a hamburger and a sidebar?</p>