title: Removing space between nav border and element inside nav
body: <p>It is not too much of an issue but I wanted to know why there is still a space between the navbar's border and an element that is at the corner. This is my HTML and CSS code along with an image of the problem I am referring to. I have changed the margins but there is still space, I also tried putting the  elements on the same line as the  element but the space still exists.</p>
  <p>IMPORTANT: THE MARGIN DISAPPEARS WHEN THE PAGE IS ZOOMED INTO</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>a {
    display: block;
    text-decoration: none;
    text-align: center;
    padding: 1em;
    margin: 0;
  }
  
  a:hover {
    background-color: green;
  }
  
  ul,
  li {
    display: inline-block;
    padding: 0;
    margin: 0;
  }
  
  ul {
    display: flex;
    max-width: 50%;
    justify-content: space-around;
    flex-grow: 1;
  }
  
  nav {
    position: sticky;
    top: 0;
    width: 90%;
    margin: 0;
    padding: 0;
    border-left: 5px solid black;
    border-right: 5px solid black;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: greenyellow;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;nav&gt;
    &lt;a href="#home" id="ho"&gt;Home&lt;/a&gt;
    &lt;ul&gt;
      &lt;li&gt;
        &lt;a href="#products"&gt;Products&lt;/a&gt;
      &lt;/li&gt;
      &lt;li&gt;
        &lt;a href="#contact"&gt;Contact&lt;/a&gt;
      &lt;/li&gt;
      &lt;li&gt;
        &lt;a href="#about"&gt;About&lt;/a&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
    &lt;a href="signup"&gt;Sign Up&lt;/a&gt;
  &lt;/nav&gt;</code></pre>
  </div>
  </div>
  </p>
  <p><a href="https://i.stack.imgur.com/2UxUW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2UxUW.png" alt="The link when hovered over shows a small space between the border and the hovered element" /></a></p>