title: CSS property min-height causing margin issue?
body: <p>I am trying to make a div which has a CSS-generated triangle attached to the bottom of it. It works perfectly when the height of the div above is set using the CSS <code>height</code> property, but when I use <code>min-height</code> instead, it results in there being an unwanted gap, which I am unable to get rid of using the <code>margin</code> CSS properties.</p>
  
  <p>Does anyone have any idea how I could get rid of the issue?</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>.triangle {
    width: 0;
    height: 0;
    margin-right: auto;
    margin-left: auto;
    border-style: solid;
    border-width: 17px 10.5px 0 10.5px;
  }
  
  .divider1 {
    min-height: 80px;
  }
  
  .divider2 {
    height: 80px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="divider1" style="background-color: blue"&gt;
    &lt;h1&gt;This one doesn't work&lt;/h1&gt;
  &lt;/div&gt;
  &lt;div class="triangle" style="border-color: blue transparent transparent transparent"&gt;&lt;/div&gt;
  
  &lt;div class="divider2" style="background-color: green"&gt;
    &lt;h1&gt;But this one does?&lt;/h1&gt;
  &lt;/div&gt;
  &lt;div class="triangle" style="border-color: green transparent transparent transparent"&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>