title: Adding a black background to bootstrapped fixed-top navbar
body: <p>I'm having a lot of trouble adding a fixed black background to my bootstrapped navbar. In my CSS, I declared the background-color as black, but it doesn't seem to change anything. My own CSS is declared after bootstrap's core CSS, so it wouldn't be overridden by a default color. The nav bar shows as transparent, with opaque lettering. Not sure what the problem is, especially since I already declared the color of the navbar!</p>
  
  <p>Here is the HTML for the navbar:</p>
  
  <pre><code>&lt;div class="jumbotron"&gt;
    &lt;div class="container"&gt;
      &lt;nav class="navbar fixed-top"&gt;
        &lt;div class="navbar-fixed-top container"&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="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 navbar-right"&gt;
              &lt;li&gt;&lt;a href="#linktotop"&gt;Home&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;About&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;
                &lt;a href="#" role="button" aria-haspopup="true" aria-expanded="false"&gt;Personal Projects&lt;span class="caret"&gt;&lt;/span&gt;&lt;/a&gt;
              &lt;/li&gt;
                &lt;li&gt;&lt;a href="#"&gt;Bullet Blog&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;Contact&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;/div&gt;
        &lt;/div&gt;
  &lt;/nav
  </code></pre>
  
  <p>And here is my CSS. Please help. I am going insane.</p>
  
  <pre><code>.jumbotron navbar-fixed-top container{
      background: #2E2F31;
      position: fixed; 
      width: 100%;
  }
  .navbar .navbar-nav li a {
      color: white;
      font-size: 16px;
  }
  .navbar .navbar-nav li a:hover {
      background: #BFC1C3;
  }
  .navbar .navbar-nav .dropdown-menu li a:hover {
      background: #BFC1C3;
  }
  </code></pre>