Certainly! Below is a simple, clean, and responsive example of a basic e-commerce website for selling skincare products. It includes a homepage with a product listing, a navigation bar, and a footer. You can expand it with backend functionality later (e.g., shopping cart, payment integration).
Complete HTML + CSS for a Skincare E-commerce Website
html Copy code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>GlowSkin - Skincare Products</title>
<style>
/* Reset some default styles */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background: #f9f9f9;
color: #333;
line-height: 1.6;
}
header {
background-color: #fff;
border-bottom: 1px solid #ddd;
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
position: sticky;
top: 0;
z-index: 1000;
}
header h1 {
color: #27ae60;
font-weight: 700;
font-size: 1.8rem;
cursor: pointer;
}
nav a {
color: #555;
text-decoration: none;
margin-left: 1.5rem;
font-weight: 600;
transition: color 0.3s ease;
}
nav a:hover {
color: #27ae60;
}
main {
max-width: 1200px;
margin: 2rem auto;
padding: 0 1rem;
}
.products {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
}
.product-card {
background: #fff;
border-radius: 8px;
box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
overflow: hidden;
display: flex;
flex-direction: column;
transition: transform 0.3s ease;
}
.product-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgb(0 0 0 / 0.15);
}
.product-image {
width: 100%;
height: 200px;
object-fit: cover;
}
.product-info {
padding: 1rem;
flex-grow: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.product-info h3 {
margin-bottom: 0.5rem;
color: #27ae60;
}
.product-info p {
flex-grow: 1;
font-size: 0.9rem;
color: #666;
margin-bottom: 1rem;
}
.price {
font-weight: 700;
font-size: 1.1rem;
margin-bottom: 1rem;
color: #2c3e50;
}
.btn-buy {
background-color: #27ae60;
color: white;
border: none;
padding: 0.75rem;
border-radius: 4px;
cursor: pointer;
font-weight: 600;
transition: background-color 0.3s ease;
}
.btn-buy:hover {
background-color: #219150;
}
footer {
background-color: #27ae60;
color: white;
text-align: center;
padding: 1rem 0;
margin-top: 3rem;
}
@media (max-width: 600px) {
header {
flex-direction: column;
align-items: flex-start;
}
nav {
margin-top: 0.5rem;
}
}
</style>
</head>
<body>
<header>
<h1>GlowSkin</h1>
<nav>
<a href="#">Home</a>
<a href="#">Products</a>
<a href="#">About</a>
<a href="#">Contact</a>
<a href="#">Cart</a>
</nav>
</header>
<main>
<h2>Our Bestselling Skincare Products</h2>
<div class="products">
<div class="product-card">
<img
src="https://images.unsplash.com/photo-1501004318641-b39e6451bec6?auto=format&fit=crop&w=400&q=80"
alt="Hydrating Face Cream"
class="product-image"
/>
<div class="product-info">
<h3>Hydrating Face Cream</h3>
<p>Deeply moisturizes and nourishes your skin for a radiant glow.</p>
<div class="price">$29.99</div>
<button class="btn-buy">Add to Cart</button>
</div>
</div>
<div class="product-card">
<img
src="https://images.unsplash.com/photo-1522335789203-aabd1fc54bc9?auto=format&fit=crop&w=400&q=80"
alt="Vitamin C Serum"
class="product-image"
/>
<div class="product-info">
<h3>Vitamin C Serum</h3>
<p>Brightens skin tone and reduces signs of aging with antioxidants.</p>
<div class="price">$39.99</div>
<button class="btn-buy">Add to Cart</button>
</div>
</div>
<div class="product-card">
<img
src="https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=400&q=80"
alt="Gentle Facial Cleanser"
class="product-image"
/>
<div class="product-info">
<h3>Gentle Facial Cleanser</h3>
<p>Removes impurities without stripping natural oils for soft skin.</p>
<div class="price">$19.99</div>
<button class="btn-buy">Add to Cart</button>
</div>
</div>
<div class="product-card">
<img
src="https://images.unsplash.com/photo-1512436991641-6745cdb1723f?auto=format&fit=crop&w=400&q=80"
alt="Soothing Aloe Gel"
class="product-image"
/>
<div class="product-info">
<h3>Soothing Aloe Gel</h3>
<p>Calms irritated skin and provides long-lasting hydration.</p>
<div class="price">$24.99</div>
<button class="btn-buy">Add to Cart</button>
</div>
</div>
</div>
</main>
<footer>
<p>© 2025 GlowSkin. All rights reserved.</p>
</footer>
</body>
</html>
How to Use This
Save the code above into a file named index.html.
Open it in a browser to see your skincare e-commerce homepage.
You can replace the product images and descriptions with your own.
To add real e-commerce functionality (cart, checkout), you’d need JavaScript and backend integration or use platforms like Shopify, WooCommerce, or integrate payment APIs.
If you want, I can help you add JavaScript for a simple cart or connect it to a backend! Just ask.