I am encountering difficulties achieving equal height bootstrap cards with varying length body content when using a slick carousel. Despite searching for solutions on similar issues, none of them seem to work in my specific situation.
While I have successfully achieved equal height slides, I am struggling to make the cards within the slides occupy 100% height of the slide (parent container). My goal is to replicate what the Bootstrap class 'card-deck' accomplishes but within a carousel.
HTML
<div class="container">
<div class="row>
<div class="col-10 mx-auto s_container">
<div class="slider">
<div class="card">
<img class="card-img-top" src="img-ph.jpg" alt="place holder">
<div class="card-body">Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptates, rem?</div>
<div class="card-footer">
<a href="#" class="btn btn-primary">More Info</a>
</div>
</div>
<div class="card">
<img class="card-img-top" src="img-ph.jpg" alt="place holder">
<div class="card-body">Lorem ipsum dolor sit amet consectetur adipisicing elit. Rem, quasi soluta dolorum pariatur hic porro.</div>
<div class="card-footer">
<a href="#" class="btn btn-primary">>More Info</a>
<</div>
</div>
</div>
<div>
</div>
</div>
CSS
.s_container{
margin: 0 auto;
padding: 0 40px 0 40px;
width: 100%;
}
.slider{
border: 2px solid red;
}
.slick-track {
display: flex !important;
}
.slick-slide {
margin: 12px;
height: auto;
border: 2px solid green;
}
.slick-frame {
visibility: hidden;
}
An example of this in action can be viewed here: