title: Change bootstrap active menu item color
body: <p>I would like to change the background color of active element in menu. I've tried a lot of solutions but i still can't do this. 
  Menu and css:</p>
  
  <p><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>/* MAIN SITE NAVIGATION */
  
  .navbar.navbar-default {
    font-size: 14px;
    background-color: #FFFFFF;
    border-bottom-width: 0px;
  }
  .navbar.navbar-default .navbar-nav {
    background-color: #FFFFFF;
  }
  .navbar.navbar-default .navbar-nav&gt;li&gt;a {
    color: #323232;
    background-color: #FFFFFF;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
  }
  .navbar.navbar-default .navbar-nav&gt;li&gt;a:hover,
  .navbar.navbar-default .navbar-nav&gt;li&gt;a:focus {
    color: #50A0FF;
    background-color: #FFFFFF;
  }
  .navbar.navbar-default .navbar-nav&gt;.active&gt;a,
  .navbar.navbar-default .navbar-nav&gt;.active&gt;a:hover,
  .navbar.navbar-default .navbar-nav&gt;.active&gt;a:focus {
    color: #50A0FF;
    background-color: #FFFFFF;
  }
  .navbar.navbar-default .navbar-nav li .active {
    background-color: red !important;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" /&gt;
  &lt;nav class="navbar navbar-default navbar-static-top"&gt;
    &lt;div class="container"&gt;
      &lt;div class="navbar-header"&gt;
        &lt;button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"&gt;
          &lt;span class="sr-only"&gt;Pokaż MENU&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 id="navbar" class="navbar-collapse collapse"&gt;
        &lt;ul class="nav navbar-nav"&gt;
          &lt;li class="active"&gt;&lt;a href="#"&gt;Home&lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;&lt;a href="#about"&gt;About&lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;&lt;a href="#contact"&gt;Contact&lt;/a&gt;
          &lt;/li&gt;
          &lt;li class="dropdown"&gt;
            &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"&gt;Dropdown &lt;span class="caret"&gt;&lt;/span&gt;&lt;/a&gt;
            &lt;ul class="dropdown-menu"&gt;
              &lt;li&gt;&lt;a href="#"&gt;Action&lt;/a&gt;
              &lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;Another action&lt;/a&gt;
              &lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;Something else here&lt;/a&gt;
              &lt;/li&gt;
              &lt;li role="separator" class="divider"&gt;&lt;/li&gt;
              &lt;li class="dropdown-header"&gt;Nav header&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;Separated link&lt;/a&gt;
              &lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;One more separated link&lt;/a&gt;
              &lt;/li&gt;
            &lt;/ul&gt;
          &lt;/li&gt;
        &lt;/ul&gt;
      &lt;/div&gt;
      &lt;!--/.nav-collapse --&gt;
    &lt;/div&gt;
  &lt;/nav&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"&gt;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="https://i.stack.imgur.com/Zpy7V.png" rel="nofollow noreferrer">Menu photo</a></p>
  
  <p>i hope somebody will help me. ps sorry for my english :)</p>