title: How to make everything under input have static position?
body: <p>I made a site with a input.<br>
  I have a span which acts as a placeholder so I can animate it when the input is selected.<br>
  When you select the input, the placeholder(span) moves to the top, like expected.<br>
   But the rest of the page will shift up a little bit because the placeholder span is gone. I can't add a bigger margin to the placeholder, even if it is 5000px, the margin doesn't work.  </p>
  
  <p>How to make the rest of the page static / make the margin work?  </p>
  
  <p>My code (please view fullscreen to see the right text moving, otherwise the top wil move):  </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>@import url('https://fonts.googleapis.com/css?family=Raleway:400,500');
  
  #content {
      width: 80%;
  
      padding-top: 57px;
      padding-bottom: 50px;
  
      border: 1px solid #DADCE0;
      border-radius: 10px;
  }
  
  
  .center {
      text-align: center;
  }
  
  
  h1 {
      margin-top: 20px;
       
      font-family: 'Raleway', sans-serif;
      font-size: 25px;
      font-weight: 500;
       
      color: #202124;
  }
  
  h2 {
      font-family: 'Raleway', sans-serif;
      font-size: 17px;
      font-weight: 500;
      color: #202124;`enter code here`
  }
  
  input {
      width: 82%;
      margin-top: 28px;
      padding: 20px 15px;
  
      border: 1px solid #DADCE0;
      border-radius: 5px;    
  }
  input:focus {
        outline: none !important;
      border: 2px solid #1A73E8;
      margin-bottom: -2px;
  }
  
  .placeholder {
      position: relative;
  
      left: calc(9% - 3px);
      top: -37px;
  
      padding: 0 8px;
      margin-left: 12px;
  
      background-color: white;
  
      font-family: 'Raleway', sans-serif;
      font-size: 17px;
      font-weight: 500;
      color: rgba(32, 33, 36, 0.60);
  
      -webkit-transition: top 0.2s, font-size 0.2s; /* Safari 3.1 to 6.0 */
      transition: top 0.2s, font-size 0.2s;
  }
  .placeholder-moved {
      top: -63px;
      font-size: 12px;
      color: #1A73E8;
       cursor: default;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  
  
  &lt;html&gt;
  
   &lt;body&gt;
  
  
    &lt;div id="content"&gt;
  
     &lt;div class="center"&gt;&lt;img src="assets/logo.png" alt="Logo" width="78px;"&gt;&lt;/div&gt;
  
     &lt;div class="center"&gt;&lt;h1&gt;Hey&lt;/h1&gt;&lt;/div&gt;
     &lt;div class="center"&gt;&lt;h2&gt;Hey there&lt;/h2&gt;&lt;/div&gt;
  
  
  
  
     &lt;div class="center"&gt;&lt;input id="input1" type="text"&gt;&lt;/div&gt;
  
     &lt;span class="placeholder" id="placeholder1"&gt;Placeholder&lt;/span&gt;
  
     &lt;script&gt;
      $("#input1").focusin(function() {
       $("#placeholder1").addClass("placeholder-moved");
      });
      $("#input1").focusout(function() {
       $("#placeholder1").removeClass("placeholder-moved");
      });
  
      $("#placeholder1").click(function() {
       $("#input1").focus();
      });
     &lt;/script&gt;
  
  
     &lt;br&gt;
  
     This text moves
  
  
    &lt;/div&gt;
  
  
   &lt;/body&gt;
  
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>