title: How to get rid of margin in bootstrap css navigation bar
body: <p>I am building a responsive navigation bar in bootstrap and trying to customize it to my need to make my own design. </p>
  
  <p>I managed to get the drop down on mobile size window but there is margin which i can't seem to get rid of on the right nevertheless i tried overriding the classes attributes (please check the image below) <a href="https://i.stack.imgur.com/yVL93.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yVL93.jpg" alt="enter image description here"></a></p>
  
  <p><strong>I am using bootstrap 3.3.7 and jquery-3.3.1</strong></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>.navbar {
    height: 50px;
    color: #2a4068;
    margin-bottom: 0px;
  }
  
  .navbar-default {
    color: #2a4068;
    background: #d8dfea;
    border-bottom: solid 0px #2a4068;
    box-shadow: 0px 1px 2px 0px #2a4068;
  }
  
  .container {
    height: 50px;
    padding-left: 0px;
    padding-right: 0px;
  }
  
  .navbar-header {
    height: 50px;
    margin-left: 0px;
    margin-right: 0px;
  }
  
  .navbar-collapse {
    padding-left: 0px;
    padding-right: 0px;
  }
  
  .navbar-nav {
    margin-right: 0px;
    margin-left: 0px;
    padding-left: 0px;
    padding-right: 0px;
    margin: 0px 0px;
  }
  
  .navbar-right {
    padding-left: 0px;
    padding-right: 0px;
    margin-right: 0px;
  }
  
  .logoImage {
    z-index: 1;
    margin-top: -7px;
    margin-bottom: 20px;
  }
  
  .navbar-nav li {
    text-align: center;
    border-radius: 4px;
    color: #2a4068;
    cursor: pointer;
  }
  
  .navbar-nav li:hover {
    background-color: #99b1d7;
    color: #2a4068;
    opacity: 0.7;
  }
  
  #nav_links {
    display: block;
    color: #2a4068;
    font-weight: bold;
  }
  
  #navbar_menu {
    width: 100%;
    margin-right: 0;
    margin-top: -10px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
   &lt;meta charset="UTF-8"&gt;
   &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
   &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
   &lt;link rel="stylesheet" href="css/bootstrap.min.css"&gt;
   &lt;link rel="stylesheet" href="css/styles.css"&gt;
   &lt;title&gt;Bootstrap&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;div class="navbar navbar-default navbar-fixed-top" role="navigation"&gt;
    &lt;div class="container-fluid"&gt;
      &lt;div class="navbar-header"&gt;
        &lt;a class="navbar-brand logoImage" href="index.php"&gt;
          &lt;img src="images/logo_large.png" title="Asserter" alt="logo" width="110" height="35" class="large-logo" id="brand-image" /&gt;
        &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" id="navbar_menu"&gt;
        &lt;ul class="nav navbar-nav navbar-right"&gt;
          &lt;li class=""&gt;&lt;a href="" class="" id="nav_links"&gt;Front&lt;/a&gt;&lt;/li&gt;
          &lt;li class=""&gt;&lt;a href="" class="" id="nav_links"&gt;Admin&lt;/a&gt;&lt;/li&gt;
          &lt;li class=""&gt;&lt;a href="" class="" id="nav_links"&gt;Profile&lt;/a&gt;&lt;/li&gt;
          &lt;li class=""&gt;&lt;a href="" class="" target="_blank" id="nav_links"&gt;Chat&lt;/a&gt;&lt;/li&gt;
          &lt;li class="dropdown"&gt;
            &lt;a class="dropdown-toggle" data-toggle="dropdown" id="nav_links"&gt;Notifications&lt;/a&gt;
            &lt;ul class="dropdown-menu"&gt;
              &lt;li&gt;&lt;a href="" id="nav_links"&gt;Facebook&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="" id="nav_links"&gt;Twitter&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="" id="nav_links"&gt;Instagram&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;/li&gt;
          &lt;li class=""&gt;&lt;a href="" class="" id="nav_links"&gt;Settings&lt;/a&gt;&lt;/li&gt;
          &lt;li class=""&gt;&lt;a href="" class="" id="nav_links"&gt;Log out&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class="container-fluid"&gt;
  &lt;/div&gt;
  
  &lt;script src="js/jquery-3.3.1-dev.js"&gt;&lt;/script&gt;
  &lt;script src="js/bootstrap.min.js"&gt;&lt;/script&gt; 
  &lt;script src="js/script.js"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>i need to have a perfect dropdown which lines up with the screen limits</p>