title: Inserting text into an inline-block element moves element vertically
body: <p>I'm trying to code a theme reminescent of sublime text, and so I was writing the tabs.</p>
  
  <p>The <code>div</code> elements looked fine (positioned in a horizontal line as planned), but when I tried inserting text, the <code>div</code> element would shift downwards.</p>
  
  <p>I've tried <code>position: absolute</code>, but that required hard-coding values, and resizing the window meant the text was in the wrong place. </p>
  
  <p>Is there a way to solve this problem, and why is it occurring in the first place?</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>.tab container {
    text-align: center;
  }
  .tab {
    display: inline-block;
    border-bottom: 50px solid grey;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    height: 0;
    width: 50px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;body&gt;
    &lt;header&gt;
      &lt;div class="tab_container"&gt;
        &lt;div class="tab"&gt;&lt;a href="#" title="Test"&gt;Test&lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="tab"&gt;&lt;/div&gt;
        &lt;div class="tab"&gt;&lt;/div&gt;
        &lt;div class="tab"&gt;&lt;/div&gt;
        &lt;div class="tab"&gt;&lt;/div&gt;
        &lt;div class="tab"&gt;&lt;/div&gt;
      &lt;/div&gt;
    &lt;/header&gt;
  &lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>