To create space below images, it is recommended to remove the object-fit: contain; CSS property from the img element and add margin-bottom:20px to the img CSS.
img { width: 200px; height: 200px; margin-bottom:20px; }
In addition, for proper display of card columns after searching, include inline CSS in the row element as follows:
<div class="row" style="width: 100%;">
$(document).ready(function(){
$('#search').on("keyup", function() {
var value = $(this).val().toLowerCase();
$(".uvs").filter(function() {
$(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
});
});
});
// Responsive design CSS media queries
// Extra small devices (portrait phones, less than 576px)
@media (max-width: 575.98px) { ... }
// Small devices (landscape phones, less than 768px)
@media (max-width: 767.98px) { ... }
// Medium devices (tablets, less than 992px)
@media (max-width: 991.98px) { ... }
// Large devices (desktops, less than 1200px)
@media (max-width: 1199.98px) { ... }
.body{
margin-left:auto;
margin-right:auto;
position: static;
z-index: 999;
}
/* Card styling */
.card{
width: 40%;
margin-top: 30px;
margin-bottom: 50px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}
.card-columns{
display: inline-block
}
.card-body {
display: flex;
flex-direction: column;
z-index: 999;
}
.card-deck{
margin-bottom: 20px;
}
.navbar{
margin-bottom: 40px;
}
.navbar-custom{
background-color: #0B4949;
}
.container-fluid-nav{
background-color: #448383;
height: 70px;
padding-top: 15px;
margin-bottom: 25px;
}
.btn{
margin-left: 7px;
margin-top: auto;
}
button.btn {
margin-top: auto;
}
h2{
color: white;
}
img {
width: 200px; /* Set dimensions to desired size */
height: 200px;
margin-bottom:20px;
}
.release-date{
margin-bottom: 25px;
}
.no-results{
display: none;
}
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>"Brick Sets Coming Next"</title>
<meta charset="utf-8">
<title>"Brick Sets Coming Next"</title> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
<script src="main.js"></script>
</head>
<body>
<div class="container-fluid-nav text-center">
<h2>All the Pugs</h2>
</div>
<div class="container">
<div class="row">
<div class="col-12">
<h3 class="text-center release-date">Pug List</h3>
</div>
</div>
</div>
<div class="container">
<input class="form-control" type="search" id="search" placeholder="Search" aria-label="Search">
</div>
<!-- Row 1 of June 1st release -->
<div class="container">
<div class="card-deck">
<div class="row" style="width: 100%;">
<!-- Add your card elements here -->
</div>
</div>
</div>
</body>
</html>