title: Bootstrap 4 Cards - How to make cards all the same height as well as adding horizontal padding/spacing
body: <p>I am trying to make a responsive website containing Bootstrap 4 cards. I would like to show 3 cards on large screens and 2 card on medium screens, all the same height with padding horizontally and vertically.</p>
  
  <p>When I use this code, all cards are the same height:</p>
  
  <pre><code>&lt;div class="col-md-6 col-lg-4 AMLqa card"&gt;
          &lt;img class="card-img-top" src="http://hdimages.org/wp-content/uploads/2017/03/placeholder-image4.jpg" alt="Card image cap"&gt;
          &lt;div class="card-body"&gt;
              &lt;h3&gt;Are your clients unsure how to perform some exercises or &lt;span class="AMLqatitle"&gt;aren't happy with the foods&lt;/span&gt; you have given them in their plans?&lt;/h3&gt;
              &lt;p class="AMLqatext"&gt;The app allows you store step-by-step information along with a video how to perform each exercise to ensure your clients know exactly what to do.&lt;/p&gt;
          &lt;/div&gt;
          &lt;button class="btn btn-primary"&gt;See how Lifestyle Admin Panel works&lt;i class="far fa-arrow-alt-circle-right" style="margin-left: 0.5em"&gt;&lt;/i&gt;&lt;/button&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/7DxUS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7DxUS.png" alt="enter image description here"></a></p>
  
  <p>But when I try and add padding to them with this code, they are no longer the same height:</p>
  
  <pre><code>&lt;div class="col-md-6 col-lg-4"&gt;
          &lt;div class="card"&gt;
              &lt;img class="card-img-top" src="http://hdimages.org/wp-content/uploads/2017/03/placeholder-image4.jpg" alt="Card image cap"&gt;
              &lt;div class="card-body"&gt;
                  &lt;h3&gt;Are you &lt;span class="AMLqatitle"&gt;struggling to get noticed&lt;/span&gt; amongst the thousands of other PTs in your area?&lt;/h3&gt;
                  &lt;p class="AMLqatext"&gt;Providing a world-class service that makes you a client’s first-choice with your own professional app not offered by most other personal trainers.&lt;/p&gt;
              &lt;/div&gt;
          &lt;button class="btn btn-primary"&gt;Discover Lifestyle's marketing capabilities&lt;i class="far fa-arrow-alt-circle-right" style="margin-left: 0.5em"&gt;&lt;/i&gt;&lt;/button&gt;
          &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/LlsSe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LlsSe.png" alt="enter image description here"></a></p>
  
  <p>Please can someone advise how this can be done.</p>