title: Menu jumps on hover
body: <p>I'm building a menu using bootstrap 4m but I ran into an issue I can't figure out. </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>header &gt; nav {
      background-color: #fff;
  }
  
  .navbar {
      padding-top: 1.6rem;
      padding-bottom: 1.6rem;
  }
  
  .navbar-nav &gt; li &gt; a {
      font-size: 1.4rem;
      color: #504843;
      text-transform: uppercase;
      letter-spacing: .1rem;
      font-weight: 700;
      margin-right: 2rem;
  }
  
  .navbar-nav &gt; li &gt; a:hover, 
  .navbar-nav &gt; li &gt; a:focus {
      background: none;
      font-size: 1.4rem;
      color: #262423;
      border-bottom: .3rem solid #ff5f06;
      letter-spacing: .1rem;
  }
  
  .navbar-nav &gt; li:last-child {
      margin-right: -2rem;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;nav class="navbar navbar-expand-lg navbar-light bg-light sticky-top"&gt;
         &lt;div class="container"&gt;
          &lt;a class="navbar-brand" href="#"&gt;
              &lt;img src="assets/images/logo.png" alt=""&gt;
          &lt;/a&gt;
          &lt;div class="collapse navbar-collapse" id="navbarNav"&gt;
              &lt;ul class="navbar-nav ml-auto"&gt;
                  &lt;li class="nav-item"&gt;
                      &lt;a class="nav-link" href="#"&gt;Home &lt;span class="sr-only"&gt;(current)&lt;/span&gt;&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li class="nav-item"&gt;
                      &lt;a class="nav-link" href="#"&gt;Features&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li class="nav-item"&gt;
                      &lt;a class="nav-link" href="#"&gt;Pricing&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li class="nav-item"&gt;
                      &lt;a class="nav-link disabled" href="#"&gt;Disabled&lt;/a&gt;
                  &lt;/li&gt;
              &lt;/ul&gt;
          &lt;/div&gt;
          &lt;/div&gt;
      &lt;/nav&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I added an orange line (border-bottom) on hover. When I hover over a menu item, the entire menu jumps up a little bit.</p>
  
  <p>How can I avoid this jumping?
  Thanks</p>