Website HTML/CSS Construction

Job ID: 40086884

Budget: ₹37,500 – ₹75,000 INR

my-website/
├── index.html (Home page)
├── about.html (About Us page)
├── contact.html (Contact Us page)
├── css/
│ └── styles.css (Shared styles)
└── images/
├── hero-image.jpg (Placeholder for Home hero)
├── about-image.jpg (Placeholder for About)
└── logo.png (Placeholder for header logo). <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Home - Your Company</title>
<link rel="stylesheet" href="css/styles.css">
</head>
<body>
<header>
<div class="container">
<img src="images/logo.png" alt="Your Logo" class="logo">
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About Us</a></li>
<li><a href="contact.html">Contact Us</a></li>
</ul>
</nav>
</div>
</header>

<main>
<section class="hero">
<div class="container">
<h1>Welcome to Your Company</h1>
<p>We offer innovative products and services to help you succeed. Discover our range of solutions designed for modern needs.</p>
<a href="about.html" class="btn">Learn More</a>
</div>
<img src="images/hero-image.jpg" alt="Hero Image" class="hero-image">
</section>

<section class="products">
<div class="container">
<h2>Our Products & Services</h2>
<div class="product-grid">
<div class="product">
<h3>Product 1</h3>
<p>A brief description of your first product or service.</p>
</div>
<div class="product">
<h3>Product 2</h3>
<p>A brief description of your second product or service.</p>
</div>
<div class="product">
<h3>Service 1</h3>
<p>A brief description of your first service.</p>
</div>
</div>
</div>
</section>
</main>

<footer>
<div class="container">
<p>&copy; 2023 Your Company. All rights reserved.</p>
</div>
</footer>
</body>
</html>

Css
/* Reset and base styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: Arial, sans-serif;
line-height: 1.6;
color: #333;
background-color: #fff;
}

.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}

/* Header */
header {
background-color: #f8f9fa;
padding: 10px 0;
border-bottom: 1px solid #ddd;
}

header .container {
display: flex;
justify-content: space-between;
align-items: center;
}

.logo {
height: 50px;
}

nav ul {
list-style: none;
display: flex;
}

nav ul li {
margin-left: 20px;
}

nav a {
text-decoration: none;
color: #007bff;
font-weight: bold;
}

nav a:hover {
color: #0056b3;
}

/* Main sections */
.hero {
display: flex;
align-items: center;
padding: 50px 0;
background-color: #f8f9fa;
}

.hero .container {
display: flex;
flex-direction: column;
align-items: flex-start;
}

.hero h1 {
font-size: 2.5rem;
margin-bottom: 20px;
}

.hero p {
font-size: 1.2rem;
margin-bottom: 30px;
}

.hero-image {
width: 100%;
max-width: 500px;
margin-top: 20px;
}

.products {
padding: 50px 0;
}

.product-grid {
display: flex;
gap: 20px;
justify-content: space-around;
}

.product {
flex: 1;
text-align: center;
padding: 20px;
border: 1px solid #ddd;
border-radius: 5px;
}

.about {
padding: 50px 0;
}

.about-content {
display: flex;
gap: 40px;
align-items: center;
}

.about-image {
width: 100%;
max-width: 400px;
}

.contact {
padding: 50px 0;
}

.contact-content {
display: flex;
gap: 40px;
justify-content: space-between;
}

.form-section, .details {
flex: 1;
}

form {
display: flex;
flex-direction: column;
}

label {
margin-top: 10px;
font-weight: bold;
}

input, textarea {
padding: 10px;
margin-top: 5px;
border: 1px solid #ddd;
border-radius: 5px;
}

textarea {
height: 100px;
}

.btn {
background-color: #007bff;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
text-decoration: none;
display: inline-block;
margin-top: 10px;
}

.btn:hover {
background-color: #0056b3;
}

/* Footer */
footer {
background-color: #f8f9fa;
text-align: center;
padding: 20px 0;
border-top: 1px solid #ddd;
}

/* Responsive design */
@media (max-width: 768px) {
.hero, .about-content, .contact-content, .product-grid {
flex-direction: column;
}

nav ul {
flex-direction: column;
align-items: center;
}

nav ul li {
margin: 10px 0;
}

.hero h1 {
font-size: 2rem;
}
}
Related categories: CSS HTML Web Design