title: CSS: Adding border to button on hover. How avoiding a shifting of the following elements?
body: <p>My idea is to add a colored border to the submit button when the user hovers it.</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 div:first-child {
    padding: 10px 20px;
    background-color: #dedede;
    margin-top: 50px;
    margin-left: 300px;
    width: 120px;
    height: 80px;
    border-radius: 8px;
  }
  
  button {
    border-radius: 4px;
    padding: 5px 10px;
  }
  
  button:hover {
    border: 6px solid crimson;
    font-weight: 800;
    background-color: white;
    color: crimson;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container"&gt;
    &lt;button&gt;SUBMIT&lt;/button&gt;
    &lt;div&gt;Please notice that ...&lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>But the immediately following text then becomes shifted downwards.</p>
  
  <p>How can I get rid of these "Jumping" text while simultaneously having the border?</p>