title: Hiding button on desktop browser and showing only on mobile devices
body: <p>I have bootstrap header nav bar with buttons. What I trying to do is to add button which is visible only on mobile devices and small screens - phones/tablets. </p>
  
  <p>This is structure of the header</p>
  
  <pre><code>&lt;header&gt;
      &lt;nav class="navbar navbar-default" role="navigation"&gt;
          &lt;div class="navbar-header"&gt;
              &lt;button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"&gt;
                  &lt;span class="sr-only"&gt;Toggle navigation&lt;/span&gt;
                  &lt;span class="icon-bar"&gt;&lt;/span&gt;
                  &lt;span class="icon-bar"&gt;&lt;/span&gt;
                  &lt;span class="icon-bar"&gt;&lt;/span&gt;
              &lt;/button&gt;
          &lt;/div&gt;
          &lt;div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"&gt;
              &lt;ul class="nav navbar-nav" &gt;
                  &lt;li&gt;&lt;a href=""&gt;Button 1&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href=""&gt;Button 2&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href=""&gt;Button 3&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href=""&gt;BUTTON 4&lt;/a&gt;&lt;/li&gt;
              &lt;/ul&gt;
          &lt;/div&gt;
      &lt;/nav&gt;
  &lt;/header&gt;
  </code></pre>
  
  <p>I want to make <code>BUTTON 4</code> visible only on small screens. 
  So I make the button like this:</p>
  
  <pre><code>&lt;li class="not_visible"&gt;&lt;a href=""&gt;BUTTON 4&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  
  <p>Then in css I add</p>
  
  <pre><code>.not_visible {
      display: none;
  }
  @media  (max-width: 767px) {
      .header{
          text-align : center;
      }
  
      .not_visible {
          display: inline;
      }                                                                                                                          
  
     .nav{
          margin-top : 30px;
     }
  }
  </code></pre>
  
  <p>But is visible on every screen resolution. Seems like <code>display: none;</code> isn't working.</p>