title: Why can't I use flex with <button> elements?
body: <p>I have the following code in <em>index.html</em></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>h1 {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
  }
  
  #count-el {
    font-size: 50px;
    display: flex;
    justify-content: center;
  }
  
  #increment-btn {
    background: red;
    color: white;
    font-size: 40px;
    display: flex;
    justify-content: center;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;h1&gt;People entered:&lt;/h1&gt;
  &lt;h2 id="count-el"&gt;0&lt;/h2&gt;
  &lt;button id="increment-btn"&gt;Increment&lt;/button&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>Flex works in all elements except for the <code>&lt;button&gt;</code> element. It doesn't center it. Why is that?</p>