HTML code
Clean, semantic HTML that powers this Bootstrap 5.2.0 snippet. Copy and paste it into your page (with Bootstrap loaded) to reproduce the exact layout shown in the preview.
Download<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.1/css/all.min.css" integrity="sha256-2XFplPlrFClt0bIdPgpz8H7ojnk10H69xRqd9+uTShA=" crossorigin="anonymous" />
<div class="container">
<div class="row justify-content-center product-grid-style">
<div class="col-11 col-sm-6 col-lg-4 col-xl-3">
<div class="product-details">
<div class="product-img">
<div class="label-offer bg-red">Sale</div><img src="https://www.bootdey.com/image/480x480/6495ED/000000" alt="...">
<div class="product-cart">
<a href="#!"><i class="fa-solid fa fa-eye"></i></a>
<a href="#!"><i class="fas fa-cart-plus"></i></a>
<a href="#!"><i class="fas fa-heart"></i></a>
</div>
</div>
<div class="product-info">
<a href="#!">Women's Bag</a>
<p class="price text-center m-0">
<span class="red line-through me-2">$600</span>
<span>$599</span>
</p>
</div>
</div>
</div>
<div class="col-11 col-sm-6 col-lg-4 col-xl-3">
<div class="product-details">
<div class="product-img">
<img src="https://www.bootdey.com/image/480x480/FF1493/000000" alt="...">
<div class="product-cart">
<a href="#!"><i class="fa-solid fa fa-eye"></i></a>
<a href="#!"><i class="fas fa-cart-plus"></i></a>
<a href="#!"><i class="fas fa-heart"></i></a>
</div>
</div>
<div class="product-info">
<a href="#!">Modern Chair</a>
<p class="price text-center m-0 ">
<span class="red line-through me-2">$500</span>
<span>$300</span>
</p>
</div>
</div>
</div>
<div class="col-11 col-sm-6 col-lg-4 col-xl-3">
<div class="product-details">
<div class="product-img">
<div class="label-offer bg-primary-solid">New</div><img src="https://www.bootdey.com/image/480x480/5F9EA0/000000" alt="...">
<div class="product-cart">
<a href="#!"><i class="fa-solid fa fa-eye"></i></a>
<a href="#!"><i class="fas fa-cart-plus"></i></a>
<a href="#!"><i class="fas fa-heart"></i></a>
</div>
</div>
<div class="product-info">
<a href="#!">Coffee Mug</a>
<p class="price text-center m-0">
<span class="red line-through me-2">$200</span>
<span>$100</span>
</p>
</div>
</div>
</div>
<div class="col-11 col-sm-6 col-lg-4 col-xl-3">
<div class="product-details">
<div class="product-img">
<div class="label-offer bg-red">Sale</div><img src="https://www.bootdey.com/image/480x480/7FFF00/000000" alt="...">
<div class="product-cart">
<a href="#!"><i class="fa-solid fa fa-eye"></i></a>
<a href="#!"><i class="fas fa-cart-plus"></i></a>
<a href="#!"><i class="fas fa-heart"></i></a>
</div>
</div>
<div class="product-info">
<a href="#!">Sneakers Shoe</a>
<p class="price text-center m-0">
<span class="red line-through me-2">$1200</span>
<span>$900</span>
</p>
</div>
</div>
</div>
<div class="col-11 col-sm-6 col-lg-4 col-xl-3">
<div class="product-details">
<div class="product-img">
<img src="https://www.bootdey.com/image/480x480/FF7F50/000000" alt="...">
<div class="product-cart">
<a href="#!"><i class="fa-solid fa fa-eye"></i></a>
<a href="#!"><i class="fas fa-cart-plus"></i></a>
<a href="#!"><i class="fas fa-heart"></i></a>
</div>
</div>
<div class="product-info">
<a href="#!">Nikon Camera</a>
<p class="price text-center m-0">
<span class="red line-through me-2">$399</span>
<span>$199</span>
</p>
</div>
</div>
</div>
<div class="col-11 col-sm-6 col-lg-4 col-xl-3">
<div class="product-details">
<div class="product-img">
<div class="label-offer bg-primary-solid">New</div><img src="https://www.bootdey.com/image/480x480/6495ED/000000" alt="...">
<div class="product-cart">
<a href="#!"><i class="fa-solid fa fa-eye"></i></a>
<a href="#!"><i class="fas fa-cart-plus"></i></a>
<a href="#!"><i class="fas fa-heart"></i></a>
</div>
</div>
<div class="product-info">
<a href="#!">Contrast Backpack</a>
<p class="price text-center m-0">
<span class="red line-through me-2">$800</span>
<span>$699</span>
</p>
</div>
</div>
</div>
<div class="col-11 col-sm-6 col-lg-4 col-xl-3">
<div class="product-details">
<div class="product-img">
<div class="label-offer bg-red">Sale</div><img src="https://www.bootdey.com/image/480x480/6495ED/000000" alt="...">
<div class="product-cart">
<a href="#!"><i class="fa-solid fa fa-eye"></i></a>
<a href="#!"><i class="fas fa-cart-plus"></i></a>
<a href="#!"><i class="fas fa-heart"></i></a>
</div>
</div>
<div class="product-info">
<a href="#!">Wodden Table</a>
<p class="price text-center m-0">
<span class="red line-through me-2">$199</span>
<span>$99</span>
</p>
</div>
</div>
</div>
<div class="col-11 col-sm-6 col-lg-4 col-xl-3">
<div class="product-details">
<div class="product-img">
<div class="label-offer bg-red">Sale</div><img src="https://www.bootdey.com/image/480x480/DC143C/000000" alt="...">
<div class="product-cart">
<a href="#!"><i class="fa-solid fa fa-eye"></i></a>
<a href="#!"><i class="fas fa-cart-plus"></i></a>
<a href="#!"><i class="fas fa-heart"></i></a>
</div>
</div>
<div class="product-info">
<a href="#!">Handbag</a>
<p class="price text-center m-0">
<span class="red line-through me-2">$99</span>
<span>$59</span>
</p>
</div>
</div>
</div>
</div>
</div>CSS code
Scoped CSS that styles the component. Paste it after Bootstrap 5.2.0 to keep the design, spacing, and responsiveness consistent.
Downloadbody{
margin-top:20px;
background:#F0F8FF;
}
.product-grid-style {
margin-top: -20px
}
img {
max-width: 100%;
height: auto;
vertical-align: top;
}
.product-grid-style>[class*="col-"] {
margin-top: 30px
}
.product-grid-style .product-img {
position: relative
}
.product-grid-style .product-img img {
border-radius: 0.25rem
}
.product-grid-style .product-details {
transition: all .3s ease 0s;
position: relative
}
.product-details .product-cart {
position: absolute;
left: 0;
right: 0;
bottom: 0;
display: flex;
align-items: center;
justify-content: center;
z-index: 9999
}
.product-details .product-cart>a {
width: 40px;
height: 40px;
justify-content: center;
align-items: center;
display: flex;
color: #292dc2;
margin-top: 0;
margin-right: 10px;
border-radius: 50%;
visibility: hidden;
transition: all 0.5s;
opacity: 0;
cursor: pointer;
background-color: #fff
}
.product-details .product-cart a:last-child {
margin-right: 0
}
.product-details .product-cart>a:hover {
background: #292dc2;
color: #fff
}
.product-details:hover .product-cart a {
transform: translateY(-30px);
visibility: visible;
opacity: 1
}
.product-grid-style .product-info {
padding: 15px;
float: left;
width: 100%;
text-align: center;
font-size: 18px
}
.product-grid-style .product-info>a {
margin-bottom: 5px;
display: inline-block;
font-weight: 600;
font-size: 15px
}
.product-grid-style .price {
font-weight: 600
}
.product-grid-style .price .red {
color: #878787
}
.product-list {
margin-top: -20px
}
.product-list>[class*="col-"] {
margin-top: 30px
}
.product-card {
border: 1px solid rgba(0, 0, 0, 0.075);
height: 100%
}
.product-card .card-img {
border-top-left-radius: 0.25rem;
border-bottom-left-radius: 0.25rem;
border-top-right-radius: 0;
border-bottom-right-radius: 0
}
.product-card .card-body {
padding: 2rem
}
.product-card .card-body .read-more {
display: block
}
.product-card .card-body .read-more a {
color: #292dc2;
font-size: 13px;
font-weight: 600;
letter-spacing: 0.5px
}
.product-card .card-body .read-more a:hover {
color: #282b2d
}
.product-card .card-footer:last-child {
border-radius: 0
}
.product-card h3 {
font-size: 18px;
line-height: 26px;
margin-bottom: 12px
}
.product-card h3 a {
color: #282b2d
}
.product-card h3 a:hover {
color: #292dc2
}
.product-card .card-footer {
background: none;
border-top: 1px solid rgba(0, 0, 0, 0.05);
padding: 0.8rem 2rem;
font-weight: 600
}
.product-card .card-footer a {
line-height: normal
}
.product-card ul {
margin-bottom: 0;
padding-bottom: 0
}
.product-card .card-footer img {
max-width: 35px
}
.product-card .card-footer ul li {
display: inline-block;
color: #999;
font-size: 14px;
font-weight: 500;
margin: 0 10px 0 0
}
.product-card .card-footer ul li i {
color: #292dc2;
font-size: 16px;
font-weight: 500;
margin-right: 5px
}
@media screen and (max-width: 767px) {
.product-card .card-img.bg-img {
min-height: 250px
}
}
@media screen and (max-width: 575px) {
.product-card .card-body {
padding: 1.5rem
}
}
.product-grid-style .price .red {
color: #878787;
}
.line-through {
text-decoration: line-through;
}
.label-offer {
position: absolute;
left: 0;
top: 0;
height: 25px;
line-height: 25px;
display: inline-block;
padding: 0px 12px;
color: #fff;
text-transform: uppercase;
font-weight: 600;
font-size: 12px;
z-index: 1
}
.bg-red {
background-color: #ed1b24;
}
.bg-primary-solid, .primary-overlay-solid[data-overlay-dark]:before {
background: #292dc2;
}FAQ
How do I use this snippet?
Include Bootstrap 5.2.0, paste the HTML, add the CSS block, and include the JS (if any) to mirror the live preview.
Can I use it in commercial projects?
Yes. It’s free for personal and commercial work; check the snippets license for details.
Is it responsive?
Yes. It inherits the responsive grid and components from Bootstrap 5.2.0.
About this bootstrap example/template
This free Bootstrap 5.2.0 snippet, products grid with hove icons, was published on Dec 13th 2022, 14:23 by Bootdey Admin.
Optimized for copy‑paste: clean HTML, scoped CSS, and minimal JS so you can ship production‑ready UI faster and keep designs consistent.
Mobile‑first and responsive by default. Tested across modern browsers to reduce polish time on your project.
Already trusted in 8.4K+ views. Reuse this snippet to speed up landing pages, dashboards, or onboarding flows.
Bootstrap 5.2.0
<link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css'>
<script src='https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js'></script>
This code example is based on bootstrap 5.2.0 and the grid system of this framework
Responsive
Based on bootstrap framework makes all the layouts perfectly responsive for all devices
Crossbrowser compatibility
Tested on all major browsers, it works smoothly on all of them
semantic html 5
Built on html / css3 the code quality is really amazing
Simple Integration
This code example can be simply integrated on existing sites and new ones too, all you need to do is copy the code and start working