title: Bootstrap 4: Button align text with icon
body: <p>So I'm making a button with an icon on the left. And the alignment is messed up. My text doesn't middle align with the icon and I have no idea how to fix this. Line-height doesn't seem to do anything. Or touching the padding/margins because I've added the padding to the icon area because I need it to be darker than the text background.</p>
  
  <p>Here's the image preview:</p>
  
  <p><a href="https://i.stack.imgur.com/XL1yS.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/XL1yS.jpg" alt="enter image description here"></a></p>
  
  <p>Is there a way I can fix the alignment? Or is there a way to do this type of a button easier with Bootstrap 4?</p>
  
  <p>Here's my code:</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>.btn-primary {
      background-color: #3382c7;
      font-size: 10px;
      font-weight: bold;
      text-transform: uppercase;
      span {
        padding-left: 25px;
        padding-right: 25px;
      }
      i {
        font-size: 20px;
        background-color: #306fa5;
        padding: 15px 20px;
      }
    }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;a href="#" class="btn btn-primary border-0 rounded-0 p-0"&gt;
    &lt;i class="fa fa-play" aria-hidden="true"&gt;&lt;/i&gt;
    &lt;span&gt;Click here to Play&lt;/span&gt;
  &lt;/a&gt;</code></pre>
  </div>
  </div>
  </p>