HTML (EJS): In the HTML file, look for the section after <%- include("navbar.ejs") -%> inside the body tag. The ".cardholder" contains "anime-card" templates (card.ejs). The first and last div within ".cardholder" are similar to card.ejs but have different content in the h4 heading causing some distortion. Refer to the image provided for better understanding.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c7a5a8a8b3b4b3b5a6b787f2e9f7e9f5">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="690b06061d1a1d1b0819295c4759475b">[email protected]</a>/dist/js/bootstrap.bundle.min.js"></script>
<title>ShinAshchi</title>
</head>
<body>
<%- include("navbar.ejs") -%>
<div class="card-holder">
<div class="anime-card">
<img class="anime-card-img" src="images/logo.png" alt="404" width="200px" height="200px">
<div class="anime-heading">
<h4>Lorem ipsum dolor sit, amet consectetur</h4>
</div>
</div>
<%- include("card.ejs") -%>
<%- include("card.ejs") -%>
<%- include("card.ejs") -%>
<%- include("card.ejs") -%>
<%- include("card.ejs") -%>
<%- include("card.ejs") -%>
<div class="anime-card">
<img class="anime-card-img" src="images/logo.png" alt="404" width="200px" height="200px">
<div class="anime-heading">
<h4>Lorem ipsum dolor sit, amet consectetur</h4>
</div>
</div>
</div>
</body>
</html>
Card.ejs
<div class="anime-card">
<img class="anime-card-img" src="images/logo.png" alt="404" width="200px" height="200px">
<div class="anime-heading">
<h4>Lorem ipsum dolor sit, amet consectetur adipisicing elit. Reiciendis, aspernatur accusantium!</h4>
</div>
</div>
Style.css
body{
line-height: normal;
}
.card-holder
{
background-color: antiquewhite;
padding: 20px;
margin: 20px;
}
.anime-card{
display: inline-block;
width: 309.800px;
height: fit-content;
margin-left: 10px;
margin-bottom: 10px;
padding: 20px;
background-color:#00FFFF;
background-image: url("images/2.jfif");
}
.anime-card-img{
padding-top: 1rem;
width: 100%;
}
.anime-heading{
margin-top: 10px;
min-height: 100.800px;
display: inline-block;
width: auto;
}