title: vertically center text in navigation bar
body: <p>I am trying to make a navigation bar in which the buttons' text will be aligned in the center vertically.</p>
  
  <p>Currently, everything is working fine with the navigation bar besides the vertical align.</p>
  
  <p>I have tried many methods such as with line height, padding to the top and bottom (messes up my heights so the text divs overflow), flex, and table display.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>html,
  body {
    height: 100%;
    margin: 0px;
  }
  #nav {
    height: 10%;
    background-color: rgb(52, 152, 219);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    color: white;
    font-family: Calibri;
    font-size: 200%;
    text-align: center;
    display: flex;
  }
  #nav div {
    display: inline-block;
    height: 100%;
    align-items: stretch;
    flex: 1;
  }
  #nav div:hover {
    background-color: rgb(41, 128, 185);
    cursor: pointer;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="main"&gt;
    &lt;div id="nav"&gt;
      &lt;div&gt;&lt;a&gt;Home&lt;/a&gt;&lt;/div&gt;
      &lt;div&gt;&lt;a&gt;Page2&lt;/a&gt;&lt;/div&gt;
      &lt;div&gt;&lt;a&gt;Page3&lt;/a&gt;&lt;/div&gt;
      &lt;div&gt;&lt;a&gt;Page4&lt;/a&gt;&lt;/div&gt;
      &lt;div&gt;&lt;a&gt;Page5&lt;/a&gt;&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>All help is appreciated, thank you!</p>