Check out my code snippet:
I've attempted changing the container class to container-fluid and resizing the page, but no luck.
<div class="container"> <div class="row"> <!--Product: banana split--> <div class="col"> <div class="card" style="width: 20rem;"> <img class="card-img-top" src="img/banana-split.png" alt="Banana Split Image"> <div class="card-block"> <h4 class="card-title">Banana Split</h4> <p class="card-text">Price: 5$</p> <a href="#" data-name="banana-split" data-price="5" class="add-to-cart btn btn-primary"><i class="fas fa-shopping-cart"></i> Add to Cart</a> </div> </div> </div> <div class="col"> <div class="card" style="width: 20rem;"> <img class="card-img-top" src="img/bengala-doce.png" alt="Bengala Doce Image"> <div class="card-block"> <h4 class="card-title">Doce Natalino</h4> <p class="card-text">Price: 2$</p> <a href="#" data-name="doce-natalino" data price="3" class="add-to-cart btn btn-primary"> <i class="fas fa-shopping-cart"></i> Add to Cart</a> </div> </div> </div> </div> </div>
The issue lies in the second column not aligning side by side. Instead, it's stacking on top of each other. I checked the console for any errors, but found none.
All other elements like bootstrap buttons are functioning properly.