-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTask--2.html
More file actions
74 lines (66 loc) · 1.24 KB
/
Copy pathTask--2.html
File metadata and controls
74 lines (66 loc) · 1.24 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Responsive Layout</title>
<style>
body {
margin: 0;
font-family: Arial, sans-serif;
display: flex;
flex-direction: column;
min-height: 100vh;
}
header, footer {
background: #333;
color: #fff;
text-align: center;
padding: 15px;
}
nav {
display: flex;
justify-content: center;
background: #444;
}
nav a {
color: #fff;
padding: 10px 15px;
text-decoration: none;
}
main {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 20px;
padding: 20px;
flex: 1;
}
.content, .sidebar {
background: #f0f0f0;
padding: 15px;
}
@media (max-width: 768px) {
main {
grid-template-columns: 1fr;
}
nav {
flex-direction: column;
}
}
</style>
</head>
<body>
<header>My Website</header>
<nav>
<a href="">Home</a>
<a href="">About</a>
<a href="layout-1.html">Contact us</a>
<a href="todo.html">todo list</a>
</nav>
<main>
<section class="content">Main Content Area</section>
<aside class="sidebar">Sidebar</aside>
</main>
<footer>Footer</footer>
</body>
</html>