title: gap below box 1 when i change its height
body: <p><strong>i am a noob in CSS</strong> i have created 7 divs and their height and width are set to auto. only the height of div 1 is set to <code>100 px</code>. These are placed inside <code>div</code>  of <code>wrapper</code> class</p>
  <p>when i see the output it creates a gap below div1 (gap color is black). is <code>display:grid;</code> effecting it?</p>
  <p><a href="https://i.stack.imgur.com/0JSdr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0JSdr.png" alt="enter image description here" /></a></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>.wrapper {
    background-color: rgb(0, 0, 0);
    height: 50vh;
    width: 100%px;
    display: grid;
  }
  
  .one {
    background-color: darkgrey;
    height: 100px;
    width: auto;
  }
  
  .two {
    background-color: rgb(0, 225, 255);
    height: auto;
    width: auto;
  }
  
  .three {
    background-color: rgb(17, 0, 255);
    height: auto;
    width: auto;
  }
  
  .four {
    background-color: rgb(136, 255, 0);
    height: auto;
    width: auto;
  }
  
  .five {
    background-color: rgb(17, 0, 255);
    height: auto;
    width: auto;
  }
  
  .six {
    background-color: rgb(217, 255, 0);
    height: auto;
    width: auto;
  }
  
  .seven {
    background-color: rgb(255, 0, 0);
    height: auto;
    width: auto;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="wrapper"&gt;
    &lt;div class="one"&gt;1&lt;/div&gt;
    &lt;div class="two"&gt;2&lt;/div&gt;
    &lt;div class="three"&gt;3&lt;/div&gt;
    &lt;div class="four"&gt;4&lt;/div&gt;
    &lt;div class="five"&gt;5&lt;/div&gt;
    &lt;div class="six"&gt;6&lt;/div&gt;
    &lt;div class="seven"&gt;7&lt;/div&gt;
  
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>