How to create a product page
Responsive Product Page design using HTML | CSS
Responsive Product Page design using HTML | CSS
Source Code :-
HTML ,CSS Source code:-
<html>
<head>
<style>
@import url('https://cdnjs
.cloudflare.com/ajax/libs/font-awesome/
6.0.0-beta3/css/all.min.css');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: sans-serif, Arial, Helvetica;
}
body {
height: 100vh;
background-color: #f2f2f2;
}
a {
text-decoration: none;
}
.gallery {
display: flex;
flex-wrap: wrap;
width: 100%;
justify-content: center;
align-items: center;
margin: 50px 0;
}
.content {
width: 20%;
min-width: 250px;
margin: 15px;
text-align: center;
border-radius: 20px;
cursor: pointer;
background-color: #f2f2f2;
padding-top: 10px;
box-shadow: 0 14px 28px
rgba(0, 0, 0, 0.20), 0 10px 10px
rgba(0, 0, 0, 0.20);
}
.content:hover {
box-shadow: 0 3px 6px
rgba(0, 0, 0, 0.15),
0 3px 6px rgba(0, 0, 0, 0.24);
transform: translateY(-3px);
}
img {
width: 200px;
height: 200px;
text-align: center;
margin: 0 auto;
display: block;
border-radius: 16px;
}
h3{
text-align: center;
font-size: 25px;
margin: 0;
padding: 12px 0;
}
p {
text-align: center;
color: #b2bec3;
padding: 0 8px;
}
h6 {
font-size: 18px;
text-align: center;
color: #222f25;
margin: 5px 0;
}
ul {
list-style: none;
display: flex;
justify-content: center;
align-items: center;
padding-top: 0;
}
li {
padding-left: 4px;
}
.fas {
font-size: 24px;
}
.checked {
color: gold;
}
button {
text-align: center;
width: 100%;
border: none;
background-color:#99B1E7;
color: #fff;
padding: 10px;
cursor: pointer;
font-size: 24px;
margin-top: 10px;
outline: none;
border-bottom-left-radius: 20px;
border-bottom-right-radius: 20px;
}
</style>
</head>
<body>
<div class="gallery">
<div class="content">
<img src="https://encrypted-tbn0.gstatic.com/
images?q=tbn:ANd9GcQZ9X4qF4kdx3RxNyp
V1diFl6eoAHs9TZ98QA&s" alt="">
"
"
alt="smartwatch">
<h3>Sharara Suit </h3>
<p></p>
<h6> Rs-2,000</h6>
<ul>
<li><i class="fas fa-star checked"></i></li>
<li><i class="fas fa-star checked"></i></li>
<li><i class="fas fa-star checked"></i></li>
<li><i class="fas fa-star checked"></i></li>
<li><i class="fas fa-star"></i></li>
</ul>
<button>
<a href="order.php" class="buy-2">
Buy now</a></button>
</div>
<div class="content">
<img src="https://
encrypted-tbn0.gstatic.com/images?q=tbn:
ANd9GcR5
rH8-_QVVFPa9V5nmHhx4GG4NDVJcz2SobQ&s"
alt="">
alt="">
<h3>Sharara Suit1</h3>
<p></p>
<h6> Rs-2,100</h6>
<ul>
<li><i class="fas fa-star checked"></i></li>
<li><i class="fas fa-star checked"></i></li>
<li><i class="fas fa-star checked"></i></li>
<li><i class="fas fa-star"></i></li>
<li><i class="fas fa-star"></i></li>
</ul>
<button>
<a href="order.php" class="buy-2">
Buy now</a></button>
</div>
</div>
</div>
</body>
</html>
Post a Comment