title: CSS menu moving contents on hover
body: <p>I'm attempting to create a navigation menu that shows a border when an item is hovered over. While it currently looks fine, the other menu items are pushed out of the way when one item is hovered over. How would I go about making them stay put?</p>
  
  <p>I've tried a few methods that were answered here but none of them have worked.<br>
  I've included a fiddle below.</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>nav {
    float: left;
    width: 100%;
  }
  
  ul {
    float: left;
    list-style:none;
    padding: 0;
    position: relative;
    left: 50%;
    text-align: center;
  }
  
  ul li {
    display: block;
    float: left;
    list-style: none;
    position: relative;
    right: 50%;
    margin: 0px 0px 0px 1px;
    padding: 5px 40px;
    color: white;
    line-height: 1.3em;
  }
  
  li a:hover {
    border: solid 1px black;
    padding: 5px 10px;
  }
  
  a {
    color: black;
    font-family: 'Quicksand', sans-serif;
    text-decoration: none;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;nav&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;a href="#"&gt;HOME&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;ABOUT&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;MUSIC&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;STORE&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;LIVE&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;CONTACT&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/nav&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="https://jsfiddle.net/hf77tjdz/10/" rel="nofollow noreferrer">View on JSFiddle</a></p>