title: Centering Bootstrap Icons Horizontally
body: <p>I'm having trouble centering Bootstrap Icons inside my buttons. As you can see, the icon isn't centered horizontally. I can't get it to work (I've tried text-align, flexbox with justify-content, ...), because apparently the &quot;letter&quot; itself is taking up some extra space on the right - at least that's what it looks like to me. Can anybody help me?</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>body {
      display: flex;
      justify-content: center;
      align-items: center;
  }
  
  button {
      padding: 4px;
      font-size: 24px;
      text-align: center;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
  
      &lt;link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.6.1/font/bootstrap-icons.css"&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;button&gt;
          &lt;i class="bi-play"&gt;&lt;/i&gt;
      &lt;/button&gt;
  &lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>