I have been using the card element in Bootstrap, but I noticed that when I zoom in, the heights of these 3 cards become different due to the card title. Is there a way to fix this without relying on responsive techniques like @media queries?
Below is my HTML code:
<div class="row">
<div class="col-12 col-sm-12 col-md-4 col-lg-4 col-xl-4">
<div class="card">
<img src="img/card-img.png" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Massage Therapy</h5>
<p class="card-text">Living winged said you darkness you're divide gathered and bring one seasons face great dr Waters firmamen: place which.</p>
<button class="btn btn-hover">read more</button>
</div>
</div>
</div>
// The rest of the code for other similar cards
</div>
My CSS code includes:
.content > .container .row .card {
padding: 1.9rem;
}
.content > .container .row .card > .card-body {
display: flex;
flex-direction: column;
align-items: center;
padding-top: 0;
position: relative;
}
.content > .container .row .card > .card-body > h5 {
font-size: 2.3rem;
margin: 4.2rem 0 2.9rem 0;
}
.content > .container .row .card > .card-body > p {
font-size: 1.4rem;
margin-bottom: 4.5rem;
line-height: 2.6rem;
}
.content > .container .row .card > .card-body > button {
width: 14rem;
height: 4.4rem;
font-size: 1.4rem;
}
View the image in normal size.
Thank you for your help and have a wonderful day!