Discover How to Create a Stunning Custom Card Design
<div class="container">
<div class="row">
<div class="col-lg-4 col-md-4 col-sm-12">
<div class="custom-card content-left">
<h3>EXCLUSIVE LOOK</h3>
<h1>FALL FASHION</h1>
<h2>New Arrivals</h2>
<a href="#">Explore Now</a>
</div>
</div>
<div class="col-lg-4 col-md-4 col-sm-12">
<div class="custom-card content-center">
<h3>MUST-HAVE PIECES</h3>
<h1>SUMMER STYLES</h1>
<h2>Dresses</h2>
<a href="#">Explore Now</a>
</div>
</div>
<div class="col-lg-4 col-md-4 col-sm-12">
<div class="custom-card content-right">
<h3>TIMELESS CLASSICS</h3>
<h1>For Women</h1>
<h2>Collections</h2>
<a href="#">Explore Now</a>
</div>
</div>
</div;
</div>
Create Your Own Custom Card Design with CSS Styling
/* ADD BACKGROUND IMAGE INSTEAD OF SOLID COLOR */
.content-left {
background-color: tan;
background-size: cover;
background-position: 50% 100%;
height: 100%;
width: 100%;
padding: 30px 20px;
}
.content-center {
background-color: orange;
background-size: cover;
background-position: 50% 100%;
height: 100%;
width: 100%;
padding: 30px 20px;
}
.content-right {
background-color: powderblue;
background-size: cover;
background-position: 50% 100%;
height: 100%;
width: 100%;
padding: 30px 20px;
}
/* CUSTOMIZE TEXT STYLES FOR THE CARD */
.custom-card h1 {
font-family: 'Roboto', sans-serif;
font-weight: 900;
font-size: 28px;
text-align: left;
padding: 10px 0;
}
.custom-card h2 {
font-family: 'Roboto', sans-serif;
font-weight: 500;
font-size: 24px;
text-align: left;
padding: 5px 0;
}
.custom-card h3 {
font-family: 'Roboto', sans-serif;
font-size: 18px;
text-align: left;
}
.custom-card a {
font-family: 'Roboto', sans-serif;
color: black;
font-weight: 500;
font-size: 16px;
text-align: left;
padding: 5px 0;
text-decoration: none;
padding-bottom: 5px;
border-bottom-style: solid;
border-bottom-width: 4px;
border-color: red;
}
View the Full Source Code Here: https://github.com/HassanNazmul/stack-Overflow/blob/main/Cards%20with%20image%20in%20BOOTSTRAP/index.html