title: How to vertically align and evenly distribute two buttons?
body: <p>I'm trying to align the two buttons to be horizontally centered, and evenly distributed vertically on the browser window like the following photo:</p>
  
  <p><a href="https://i.stack.imgur.com/oKyqFm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oKyqFm.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>#buttonArea {
    display: flex;
    flex-direction: column;
  }
  
  #addButton {
    margin: auto;
    display: block;
  }
  
  #eraseButton {
    margin: auto;
    display: block;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="buttonArea"&gt;
    &lt;button id="addButton"&gt;ADD&lt;/button&gt;
    &lt;button id="eraseButton"&gt;ERASE&lt;/button&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>The buttons are horizontally centered, but I don't know how to vertically align them so they are evenly distributed. (e.g. ADD: 33.33%, ERASE: 66.66%)</p>
  
  <p>How can I align the buttons like my photo?</p>