I'm currently working from this codepen snippet and facing an issue where I can't seem to align the button in the left box to the bottom of the box. Despite trying multiple approaches, I haven't been able to achieve the desired alignment.
Check out the codepen snippet here
<html>
<head>
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="accec3c3d8dfd8decddcec99829f829c81cdc0dcc4cd9e">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-aFq/bzH65dt+w6FI2ooMVUpc+21e0SRygnTpmBvdBgSdnuTN7QbdgL+OapgHtvPp" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0e6c61617a7d7a7c6f7e4e3b203d203e236f627e666f3c">[email protected]</a>/dist/js/bootstrap.bundle.min.js" integrity="sha384-qKXV1j0HvMUeCBQ+QVp7JcfGl760yU08IQ+GpUo5hlbpg51QRiuqHAJz8+BrxE/N" crossorigin="anonymous"gt;</script>
</head>
<body>
<div class="container">
<div class="courses">
<h2 class="d-flex justify-content-center text-center">Our Courses</h2>
<div class="container">
<div class="row">
<div class="col-md-6 courses-container">
<div class="drop-shadow-box">
<span class="tpr-text-block">
<h1 id="free-course-one-training" class="course-title">Course One Test Prep</h1>
<h3 id="free-course-test-prep">Course One Test Prep</h3>
<p>
Gives you unlimited access to our Course One Courses to help you get your certificate. Our courses cover everything you need to pass your written Cert Tests.
</p>
</span>
<div class="">
<div class="course-button-container text-center">
<a class="btn btn-primary btn-lg" href="#">FREE</a>
</div>
</div>
</div>
</div>
<div class="col-md-6 courses-container">
<div class="drop-shadow-box">
<span class="tpr-text-block" >
<h1 id="class-a-training" class="course-title">Course A Full Certificate</h1>
<h3 id="class-a-eldt-certificate-plus-free-permit-test-prep">Course A Full Certificate + <br>Course One Test Prep</h3>
<p>
Gives you unlimited access to all <span class="bold">REQUIRED THEORY</span> courses to get a Course A Full Certificate. Also includes unlimited access to our Course One Test Prep Courses to help you get your Cert. You will still need to go to a Cert School to do the Lab training.
</p>
<div class="text-center"><a class="btn btn-primary btn-lg" href="#">FREE</a></div>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
CSS
.courses {
background-color: #ebf3fa;
padding-top: 1.3rem;
padding-bottom: 1.3rem;
}
.courses h2 {
margin-top: 0px;
margin-bottom: 0px;
padding-bottom: 1.3rem;
}
.courses .drop-shadow-box {
background-color: #fff;
height: 100%;
box-shadow: #ced7e0 5px 5px 15px 15px;
padding: 2rem;
margin: 0px 20px;
}
.courses-container {
margin-bottom: 2rem;
}
.course-title {
background-color: #0d314b;
color:#fff;
text-align:center;
}
View image of the problem here
Despite trying various Bootstrap 5 utilities, adjusting heights, changing display settings, and more, I am still unable to solve this alignment issue.