title: How can I completely hide elements that overflow their container vertically?
body: <p>I have a fixed width and height container that consists of arbitrary height elements that need to be stacked vertically. How can I hide any elements that do not fit? <code>overflow: hidden</code> could still show the part of an element that doesn’t overflow.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.container {
    border: 1px solid #eee;
    height: 200px;
    overflow: hidden;
  }
  
  .box {
    background-color: #ccc;
    line-height: 54px;
    margin: 20px;
    text-align: center;
    width: 60px;
  }
  
  .incorrect {
    background-color: #fa9;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container"&gt;
    &lt;div class="box"&gt;show&lt;/div&gt;
    &lt;div class="box"&gt;show&lt;/div&gt;
    &lt;div class="box incorrect"&gt;hide&lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>