title: Bootstrap 3, change li.active for nav
body: <p>So, I'm playing around with Bootstrap, I'm a total noob. At any rate, to change the nav-brand, I had to use:</p>
  
  <pre><code>.navbar-brand {
     color: #da212f!important;
     text-shadow: 2px 2px 2px #DDD;
  }
  </code></pre>
  
  <p>That said, I had to use the !important declaration to get the text color to change. Is there a way around that (I'm just curious).</p>
  
  <p>The problem is, I'm trying to change the background color and the font color for the li.active in the nav bar.</p>
  
  <p><strong>Here is the HTML</strong></p>
  
  <pre><code>&lt;!-- Start Navbar --&gt;
  &lt;nav class="navbar navbar-default navbar-fixed-top"&gt;
    &lt;div class="container-fluid"&gt;
      &lt;!-- Brand and toggle get grouped for better mobile display --&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;a class="navbar-brand" href="index.html"&gt;Mr. Robot&lt;/a&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="index.html"&gt;Home &lt;span class="sr-only"&gt;(current)&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="computers.html"&gt;Hardware&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="robots.html"&gt;Robots&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="about.html"&gt;About&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="contact.html"&gt;Contact&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
        &lt;form class="navbar-form navbar-right"&gt;
          &lt;div class="form-group"&gt;
            &lt;input type="text" class="form-control" placeholder="Search"&gt;
          &lt;/div&gt;
          &lt;button type="submit" class="btn btn-default"&gt;Submit&lt;/button&gt;
        &lt;/form&gt;
      &lt;/div&gt;&lt;!-- /.navbar-collapse --&gt;
    &lt;/div&gt;&lt;!-- /.container-fluid --&gt;
  &lt;/nav&gt;
  </code></pre>
  
  <p>For the life of me, I can't get the background color to change and I'd like to know how to change the font color as well.</p>
  
  <p>Here was the CSS Options I've tried:</p>
  
  <p><strong>Option 1</strong></p>
  
  <pre><code>li.active {
     background-color: #da212f!important;
     color: #fff!important;
  }
  </code></pre>
  
  <p><strong>Option 2</strong></p>
  
  <pre><code>.navbar-nav &gt; li.active {
         background-color: #da212f!important;
         color: #fff!important;
      }
  </code></pre>
  
  <p>I've tried both, with and without the !important declaration. So, if someone could help me and point me in the right direction, I'd appreciate it.</p>