title: How can I change the default background color of the nav bar?
body: <p>How can I change the default background color of the nav bar? In my html I have this code but the page doesn't render this, it sticks to the default bootstrap css. Here is my live test page <a href="http://andrewsamonas.com/" rel="nofollow noreferrer">http://andrewsamonas.com/</a> and it shows the default inverse dark navbar not my navbar-custom one. I googled a lot and that's how I found to use navbar-custom </p>
  
  <p>this is what I added to my style.css:
  <div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.navbar-custom {
      background-color: #CC0000;
      border-color: #AA0000;
      border-radius: 0;
  }
  
  .navbar-custom .navbar-brand,
  .navbar-custom .navbar-brand:hover,
  .navbar-custom .navbar-brand:focus {
      color: #FFF;
  }
  
  .navbar-custom .navbar-nav &gt; li &gt; a {
      color: #FFF;
  }
  
  .navbar-custom .navbar-nav &gt; li &gt; a:hover,
  .navbar-custom .navbar-nav &gt; li &gt; a:focus {
      background-color: #AA0000;
  }
  
  .navbar-custom .navbar-nav &gt; .active &gt; a,
  .navbar-custom .navbar-nav &gt; .active &gt; a:hover,
  .navbar-custom .navbar-nav &gt; .active &gt; a:focus {
      color: #FFF;
      background-color: #AA0000;
  }
  
  .navbar-custom .navbar-text {
      color: #FFF;
  }
  
  .navbar-custom .navbar-toggle {
      border-color: #AA0000;
  }
  
  .navbar-custom .navbar-toggle:hover,
  .navbar-custom .navbar-toggle:focus {
      background-color: #AA0000;
  }
  
  .navbar-custom .navbar-toggle .icon-bar {
      background-color: #FFF;
  }
  
   this is in the html head </code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link rel="stylesheet" href="css/styles.css"&gt;
  
  
  &lt;!-- Latest compiled and minified CSS --&gt;
  &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"&gt;
  
  &lt;!-- Optional theme --&gt;
  &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous"&gt;
  
  &lt;!-- Latest compiled and minified JavaScript --&gt;
  &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"&gt;&lt;/script&gt;
  
  
  this is the navbar part 
  &lt;div class="navbar navbar-inverse navbar-fixed-top"&gt; 
    
  &lt;div class="container"&gt;
    
  &lt;div class="navbar-header"&gt;
  &lt;a href="#" class="navbar-brand"&gt;My Site&lt;/a&gt;
  
  &lt;button class="navbar-toggle" data-toggle="collapse" data-target=".navHeaderCollapse"&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 navHeaderCollapse"&gt;
      &lt;ul class="nav navbar-nav navbar-right"&gt;
          &lt;li&gt;&lt;a href="#"&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="#"&gt;Contacts&lt;/a&gt;&lt;/li&gt;
  
  
          &lt;li class="dropdown"&gt;
  
          &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown"&gt;Login&lt;b class="caret"&gt;&lt;/b&gt;&lt;/a&gt;
  
          &lt;ul class="dropdown-menu"&gt;
          &lt;li&gt;&lt;a href="#"&gt;Logout&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;Logout&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;Logout&lt;/a&gt;&lt;/li&gt;                 
  
          &lt;/ul&gt;
  
  
          &lt;/li&gt;
        &lt;/ul&gt;
      &lt;/div&gt;
  
  &lt;/div&gt;&lt;/div&gt;
  
  
          &lt;div id="push"&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>