title: Why is there a little gap between my navbar and both sides of my page?
body: <p><a href="https://i.stack.imgur.com/9bUOX.png" rel="nofollow noreferrer">little gap</a></p>
  
  <p>this is my html 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>body {
    background-color: green;
  }
  
  .navbar {
    overflow: hidden;
    background-color: #333;
    text-align: center;
    width: 100%;
  }
  
  .navbar a {
    float: left;
    font-size: 18px;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
  }
  
  .dropdown {
    float: left;
    overflow: hidden;
  }
  
  .dropdown .dropbtn {
    font-size: 18px;  
    border: none;
    outline: none;
    color: white;
    padding: 14px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
  }
  
  .navefix:hover, .dropdown:hover, .dropbtn {
    background-color: red;
    cursor: pointer;
  }
  
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
  }
  
  .dropdown-content a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
  }
  
  .dropdown-content a:hover {
    background-color: #ddd;
  }
  
  .dropdown:hover .dropdown-content {
    display: block;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;body&gt;
    &lt;div class="navbar"&gt;
        &lt;a&gt;&lt;/a&gt;
        &lt;div class="dropdown"&gt;
          &lt;button class="dropbtn" onclick="location.href='index.html'"&gt;Index 
          &lt;/button&gt;
          &lt;div class="dropdown-content"&gt;
            &lt;a href="page1.html"&gt;page1&lt;/a&gt;
            &lt;a href="page2.html"&gt;page2&lt;/a&gt;
            &lt;a href="page3.html"&gt;page3&lt;/a&gt;
          &lt;/div&gt;
        &lt;/div&gt; 
        &lt;a href="page4.html" class="navefix"&gt;page4&lt;/a&gt;
      &lt;/div&gt;
  &lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>See you can see it in the code snipped, the navbar should stretch outside the window so there is no green space between the navbar and the page sides.</p>