I want these 3 cards to be displayed side-by-side, but it always comes out as 3 cards stacked on top of each other. Is there anything I have to add within the code?
<div class="col-md-4">
<div class="card rounded-lg" style="width: 17.5rem;">
<img class="card-img-top" src="#" alt="Card image cap">
<div class="card-body">
<h5 class="card-title">Text1</h5>
<p class="card-text">A quick example text to build on the card title and make up the bulk of the card's content.
</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card rounded-lg" style="width: 17.5rem;">
<img class="card-img-top" src="#" alt="Card image cap">
<div class="card-body">
<h5 class="card-title">Text2</h5>
<p class="card-text">Some more text</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card rounded-lg" style="width: 17.5rem;">
<img class="card-img-top" src="#" alt="Card image cap">
<div class="card-body">
<h5 class="card-title">Text3</h5>
<p class="card-text">Some other text.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
</div>
Here's the code on codepen - https://codepen.io/icyriptide/pen/VwLrGex.