Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
57 lines (53 loc) · 1.58 KB
/
Copy pathindex.html
File metadata and controls
57 lines (53 loc) · 1.58 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Responsive Layout Example</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- Header -->
<header class="header">
<h1>Responsive Flexbox & Grid Layout</h1>
<nav>
<ul>
<li><a href="#section1">Section 1</a></li>
<li><a href="#section2">Section 2</a></li>
<li><a href="#section3">Section 3</a></li>
</ul>
</nav>
</header>
<!-- Main Content -->
<main class="main-content">
<!-- Flexbox Section -->
<section class="flex-section" id="section1">
<h2>Flexbox Layout</h2>
<div class="flex-container">
<div class="flex-item">Item 1</div>
<div class="flex-item">Item 2</div>
<div class="flex-item">Item 3</div>
</div>
</section>
<!-- Grid Section -->
<section class="grid-section" id="section2">
<h2>Grid Layout</h2>
<div class="grid-container">
<div class="grid-item">Grid 1</div>
<div class="grid-item">Grid 2</div>
<div class="grid-item">Grid 3</div>
<div class="grid-item">Grid 4</div>
</div>
</section>
<!-- Responsive Content Section -->
<section class="responsive-section" id="section3">
<h2>Responsive Section</h2>
<p>This section adapts to different screen sizes using media queries.</p>
</section>
</main>
<!-- Footer -->
<footer class="footer">
<p>© 2025 Responsive Layout Example. All rights reserved.</p>
</footer>
</body>
</html>