title: Bootstrap 4 - Center Just Two Cards (Not Three, Just Two)
body: <p>I am trying to use the <code>card-columns</code> class in Bootstrap 4 to create dynamic pages that might, at times, have from two to as many as 8 different cards in them.</p>
  
  <p>For now, my problem is simple: I am trying to use something like a <code>justify-content-around</code> class to my cards, so that, if there are only two cards, they center themselves on the page next to each other. Right now they stay on the left and they will not move from the left.</p>
  
  <p>I'm just looking for two cards, side by side, on the page.</p>
  
  <pre><code>&lt;div class="container"&gt;
  &lt;div class="card-columns"&gt;
    &lt;div class="card"&gt;
      &lt;div class="card-block"&gt;
        &lt;h4 class="card-title"&gt;Card title&lt;/h4&gt;
        &lt;p class="card-text"&gt;This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.&lt;/p&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="card"&gt;
      &lt;div class="card-block"&gt;
        &lt;h4 class="card-title"&gt;Card title&lt;/h4&gt;
        &lt;p class="card-text"&gt;This is a longer card with shorter text.&lt;/p&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Help is very much appreciated.</p>