"Bootstrap 4 Equal Height Cards using Grid with Hover effect "
Bootstrap 4.1.1 Snippet by GSTSTUDIO

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <h5>Bootstrap 4 Equal Height Cards using Grid</h5> <div class="row"> <div class="col-sm-4 py-2"> <div class="card card-body h-100"> Card. I'm just a simple card-block. </div> </div> <div class="col-sm-4 py-2"> <div class="card h-100 text-white bg-danger"> <div class="card-body"> <h3 class="card-title">Danger</h3> <p class="card-text">With supporting text below as a natural lead-in to additional content.</p> <a href="#" class="btn btn-outline-light">Outline</a> </div> </div> </div> <div class="col-sm-4 py-2"> <div class="card h-100 card-body"> Card. I'm just a simple card-block, but I have a little more text! </div> </div> <div class="col-sm-4 py-2"> <div class="card h-100 border-primary"> <div class="card-body"> <h3 class="card-title">Primary</h3> <p class="card-text">With supporting text below as a natural lead-in to additional content.</p> <a href="#" class="btn btn-outline-secondary">Outline</a> </div> </div> </div> <div class="col-sm-4 py-2"> <div class="card h-100 card-body"> Card. I'm just a simple card-block. </div> </div> <div class="col-sm-4 py-2"> <div class="card text-white bg-primary"> <div class="card-body"> <h3 class="card-title">Hello</h3> <p class="card-text">With supporting text below as a natural lead-in to additional content.</p> <a href="#" class="btn btn-outline-light">Outline</a> </div> </div> </div> </div> </div>
.card:hover{ background-color: #3d3d3d; } .card-body:hover{ background-color: #3d3d3d; }

Related: See More


Questions / Comments: