I am putting together a layout based on card-columns class. What I want is to have two cards with different width in one row. I am using code from the docs that I have modified for the demo purpose. Here is my code:
<div class="card-columns">
<div class="card">
<img class="card-img-top img-fluid" src="..." alt="Card image cap">
<div class="card-block">
<h4 class="card-title">Card title that wraps to a new line</h4>
<p class="card-text">This is a longer card with supporting text below
as a natnt. This content is a little bit longer.</p>
</div>
</div>
<div class="card"></div>
<div class="card">
<img class="card-img-top img-fluid" src="..." alt="Card image cap">
<div class="card-block">
<h4 class="card-title">Card title</h4>
<p class="card-text">This card has supporting text below as a natural
lead-in to additional content.</p>
<p class="card-text"><small class="text-muted">Last updated 3 mins
ago</small></p>
</div>
</div>
As you can see I have three cards in order to push third one into a second column. Can somebody explain why? Another question is how to have cards with a different width?
Thanks