I'm facing an issue where I need to separate text and the money part, and also align the text in a way that when viewed in smaller text sizes, the money part moves to the next line.
.outdoor-card {
display:flex;
flex-wrap: wrap;
width: 100%;
height:auto;
justify-content:center;
align-items: center;
border-radius: 10px 10px 10px 10px;
position:relative;
line-height: 1.7;
}
.outdoor-card img {
/* TO COMPLETE: MODULE_OUTDOORS_GRID */
/* 1. Fill in the necessary properties. */
width: 100%;
height: 25vh;
border-radius: 10px 10px 0px 0px;
}
<div class="container">
<div class="content">
<!-- TO COMPLETE: MODULE_OUTDOORS_GRID -->
<!-- 1. Create the grid of outdoor activities by adding child elements as needed. -->
<div class = "row">
<div class="col-6 col-sm-6 col-lg-3 mb-4 d-flex align-items-stretch px-md-4">
<a href = "resort/index.html">
<div class = "outdoor-card border bg-light">
<div class = "outdoor-card img-responsive">
<img src ="/assets/outdoor/resort.jpg" alt = "tower.jpg">
</div>
<p>Resort</p>
<p>₹1,200 </p>
</div>
</a>
</div>
</div>
<div class="col-6 col-sm-6 col-lg-3 mb-4 d-flex align-items-stretch px-md-4">
<div class = "outdoor-card border bg-light">
<div class = "outdoor-card img-responsive">
<img src ="/assets/outdoor/mount.jpg" alt = "Skiing.jpg">
</div>
<p> Skiing</p>
<p>₹1,900 </p>
</div>
</div>
</div>
<div class = "row">
<div class="col-6 col-sm-6 col-lg-3 mb-4 d-flex align-items-stretch px-md-4">
<div class = "outdoor-card border bg-light">
<div class = "outdoor-card img-responsive">
<img src ="/assets/outdoor/canopy.jpg" alt = "tower.jpg">
</div>
<p>Canopy</p>
<p>₹1,800 </p>
</div>
</div>
<div class="col-6 col-sm-6 col-lg-3 mb-4 d-flex align-items-stretch px-md-4">
<div class = "outdoor-card border bg-light">
<div class = "outdoor-card img-responsive">
<img src ="/assets/outdoor/beachside.jpg" alt = "canopy.jpg">
</div>
<p mb-0>Beach Getaway</p>
<p>₹2,200 </p>
</div>
</div>
</div>
</div>
</div>
Can someone assist me with this? The text and money part are centered as expected, but I'm struggling to separate them.