title: Let <div> grow if <p contenteditable> grows
body: <p>How can I move all the elements below a paragraph <code>p</code>, that is <code>contenteditable</code>, when I type something.</p>
  
  <p>Here is my code: </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>body,
  html {
    margin: 0;
    padding: 0;
    background-color: white;
  }
  .input {
    border: 1px dotted black;
    width: 30%;
    float: right;
    left: 45%;
    height: 40px;
    position: absolute;
    background-color: #8CE1FF;
    color: #6E6E6E;
    font-size: 16px;
    font-family: 'Arimo';
  }
  .input:hover {
    border: 1px solid black;
  }
  #content {
    border: 1px dotted black;
    width: 50%;
    float: right;
    position: absolute;
    background-color: #8CE1FF;
    color: #6E6E6E;
    font-size: 19px;
    font-family: 'Arimo';
    height: 40%;
  }
  #content:hover {
    border: 1px solid black;
  }
  .details {
    margin-bottom: 30px;
    z-index: 900;
    font-family: 'Arimo';
    font-size: 17px;
  }
  section {
    background-color: #53CFFC;
    margin: 20%;
    z-index: 901;
    border: 1px solid black;
  }
  #button {
    color: #C0C0C0;
    margin-top: 5%;
    background: #168CB7;
    border: 1px solid #0C8FBF;
    height: 40px;
    width: 100%;
    font-family: 'Arimo';
    font-size: 20px;
    position: relative;
  }
  #title {
    height: 40px;
    text-align: center;
    font-family: 'Arimo';
    font-size: 20px;
    background: #168CB7;
    color: #C0C0C0;
  }
  #form {
    padding: 4%;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;section&gt;
    &lt;div id="title"&gt;title&lt;/div&gt;
    &lt;div id="form"&gt;
      &lt;div class="details"&gt;Name &lt;strong&gt;*&lt;/strong&gt;:
        &lt;input type="text" class="input" id="name"&gt;
        &lt;br&gt;
      &lt;/div&gt;
      &lt;div class="details"&gt;Mail &lt;strong&gt;*&lt;/strong&gt; :
        &lt;input type="text" class="input" id="mail"&gt;
        &lt;br&gt;
      &lt;/div&gt;
      &lt;div class="details"&gt;Website:
        &lt;input type="text" class="input" id="name"&gt;
        &lt;br&gt;
      &lt;/div&gt;
      &lt;br&gt;
      &lt;div class="details"&gt;
        Text:
        &lt;p id="content" contenteditable="true"&gt;Click to write your post.&lt;/p&gt;
        &lt;br&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;button id="button" onclick=""&gt;Submit&lt;/button&gt;
  &lt;/section&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Here is a <a href="https://jsfiddle.net/adagi/6tm4qd8y/1/" rel="nofollow">jsFiddle</a> </p>