title: A section is not moving up according to the layout
body: <p>When I shrink the browser horizontally, I need the 'slide' element to shrink as the image does, so the section 'content' can move up right below the image position. I need the html code to remain as it is now.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code> 
  
  #body{
      background:red;
      height:500px; 
  }
  #slide{
   width:100%;
   display:flex;
   position:relative;
   height:500px;
   overflow:hidden;
   background:red;
  }
  #videoSlide{
   position:absolute; 
   max-width:100%;  
   z-index:0;
   transform: translateY(-20%); 
  }
  #videoSlide img{
   width:100%;
  }
  #content{
   width:100%;
   height:50px;
   background:yellow;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>  
     
  &lt;html&gt;
  &lt;head&gt;
   &lt;link href="style.css" rel="stylesheet"&gt;
   &lt;link href='https://fonts.googleapis.com/css?family=Patua+One' rel='stylesheet' type='text/css'&gt;
   &lt;link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'&gt;
  &lt;/head&gt;
  &lt;body&gt;
   &lt;header&gt;  
   &lt;/header&gt;
   &lt;section id="body"&gt; 
    &lt;section id="slide"&gt;
     &lt;div id="videoSlide"&gt;
      &lt;img src="https://images2.alphacoders.com/209/209140.jpg"/&gt;
     &lt;/div&gt;    
    &lt;/section&gt;
    &lt;section id="content"&gt;   
    &lt;/section&gt;
   &lt;/section&gt;
   &lt;footer&gt;
   &lt;/footer&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>