title: Bootstrap change the navbar font-size
body: <p>I have wasted 2 hours, searching for the solution. I want to change the font size of the navbar and change the font-size even in the media queries. I can change the color not the font and sometimes the font changes size in the <code>col-lg</code> but not in the <code>media-queries</code></p>
  
  <hr>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;nav class="navbar navbar-default"&gt;
              &lt;div class="container-fluid"&gt;
  
              &lt;div class="navbar-header"&gt;
                &lt;button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false"&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;!-- Collect the nav links, forms, and other content for toggling --&gt;
          &lt;div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"&gt;
            &lt;ul class="nav navbar-nav"&gt;
  
              &lt;li class="active"&gt;&lt;a href="#"&gt;Home&lt;span class="sr-only"&gt;(current)&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt; &lt;a class="nav-links" href="aboutus.html"&gt;&lt;span style="white-space: nowrap"&gt;About Us&lt;/span&gt;&lt;/a&gt; &lt;/li&gt;
              &lt;li&gt; &lt;a class="nav-links" href="whoweare.html"&gt;&lt;span style="white-space: nowrap"&gt;Who We Are&lt;/span&gt;&lt;/a&gt; &lt;/li&gt;
              &lt;li&gt; &lt;a class="nav-links" href="mission.html"&gt;Mission&lt;/a&gt; &lt;/li&gt;
              &lt;li&gt; &lt;a class="nav-links" href="activities.html"&gt;Activities&lt;/a&gt; &lt;/li&gt;
              &lt;li&gt; &lt;a class="nav-links" href="gallery.html"&gt;Gallery&lt;/a&gt; &lt;/li&gt;
              &lt;li&gt; &lt;a class="nav-links" href="donate.html"&gt;Donate&lt;/a&gt; &lt;/li&gt;
              &lt;li&gt; &lt;a class="nav-links" href="sitemap.html"&gt;Sitemap&lt;/a&gt; &lt;/li&gt;
              &lt;li&gt; &lt;a class="nav-links" href="contactus.html"&gt;&lt;span style="white-space: nowrap"&gt;Contact Us&lt;/span&gt;&lt;/a&gt; &lt;/li&gt;
  
            &lt;/ul&gt;
  
  
          &lt;/div&gt;&lt;!-- /.navbar-collapse --&gt;
      &lt;/div&gt;&lt;!-- /.container-fluid --&gt;
      &lt;/nav&gt;
  </code></pre>
  
  <hr>
  
  <p><strong>CSS</strong></p>
  
  <pre><code> nav {
                  width: 100%;
                  height: 40px;
                  background: -webkit-linear-gradient(#3f9a15, #388813, #3f9a15, #388813, #3f9a15);
                  background: -o-linear-gradient(#3f9a15, #388813, #3f9a15, #388813, #3f9a15);
                  background: linear-gradient(#3f9a15, #388813, #3f9a15, #388813, #3f9a15);
                  border-radius: 6px !important;
                  -moz-border-radius: 6px !important;
              }
  
          .nav a{
              color: white !important;
              font-size: 1.8em !important;
          }
  </code></pre>