-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfinal.html
100 lines (100 loc) · 2.86 KB
/
final.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Responsive Webpage</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
header {
background-color: #4CAF50;
color: white;
text-align: center;
padding: 1em 0;
}
nav {
display: flex;
justify-content: center;
background-color: #333;
}
nav a {
color: white;
padding: 14px 20px;
text-decoration: none;
text-align: center;
}
nav a:hover {
background-color: #ddd;
color: black;
}
.container {
padding: 20px;
}
.row {
display: flex;
flex-wrap: wrap;
}
.column {
flex: 33.33%;
padding: 10px;
}
@media screen and (max-width: 600px) {
.column {
flex: 100%;
}
}
</style>
</head>
<body>
<header>
<h1>Responsive Webpage</h1>
</header>
<nav>
<a href="#home">Home</a>
<a href="#services">Services</a>
<a href="#contact">Contact</a>
</nav>
<div class="container">
<div class="row">
<div class="column" style="background-color:#aaa;">
<h2>Column 1</h2>
<p>Some text..</p>
</div>
<div class="column" style="background-color:#bbb;">
<h2>Column 2</h2>
<p>Some text..</p>
</div>
<div class="column" style="background-color:#ccc;">
<h2>Column 3</h2>
<p>Some text..</p>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="column" style="background-color:#ddd;">
<h2>Column 4</h2>
<p>Some more text..</p>
<input type="text" placeholder="Enter text here">
</div>
<div class="column" style="background-color:#eee;">
<h2>Column 5</h2>
<p>Some more text..</p>
<input type="text" placeholder="Enter text here">
</div>
<div class="column" style="background-color:#fff;">
<h2>Column 6</h2>
<p>Some more text..</p>
<input type="text" placeholder="Enter text here">
</div>
</div>
</div>
<footer style="background-color:#333; color:white; text-align:center; padding:1em 0;">
<p>Footer Content</p>
</footer>
</body>
</html>