I am facing a challenge while working on an existing PHP project that requires editing using HTML, bootstrap, and CSS. The flexbox is not behaving as expected, specifically when trying to display two cards in a row. Even though it works in a separate file, once pasted into the project, the cards stack on top of each other and stretch the entire width of the device.
The structure of the two cards should be as follows:
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="583a37372c2b2c2a3928186d766b">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5e3c31312a2d2a2c3f2e1e6b706d706d">[email protected]</a>/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
<div class="row d-flex justify-content-around">
<div class="card costum-card mt-5">
<div class="card-head mt-4 mx-3">
<h1>Mix&Max</h1>
</div>
<div class="card mt-2 mx-3 border border-white">
<div class="card nested-card">
<div class="card-body">
<img src="phone.png" class="img-fluid card-img" />
<p class="card-body-bold">One Smart Pro</p>
<p class="card-body-light">10 GB, Minuta, SMS Pa Limit</p>
</div>
</div>
</div>
</div>
<div class="card costum-card mt-5">
<div class="card-head mt-4 mx-3">
<h1>Mix&Max</h1>
</div>
<div class="card mt-2 mx-3 border border-white">
<div class="card nested-card">
<div class="card-body">
<img src="phone.png" class="img-fluid card-img" />
<p class="card-body-bold">One Smart Pro</p>
<p class="card-body-light">10 GB, Minuta, SMS Pa Limit</p>
</div>
</div>
</div>
</div>
</div>