-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflag.html
More file actions
100 lines (100 loc) · 2.7 KB
/
flag.html
File metadata and controls
100 lines (100 loc) · 2.7 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
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>Indian Flag Floating Over Map</title>
<style>
body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
background-color: #f0f0f0;
margin: 0;
position: relative;
}
header {
width: 100%;
background: #fff;
padding: 15px 20px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
top: 0;
left: 0;
z-index: 1000;
}
.logo {
font-size: 24px;
font-weight: bold;
}
nav ul {
list-style: none;
padding: 0;
margin: 0;
display: flex;
}
nav ul li {
margin: 0 15px;
}
nav ul li a {
text-decoration: none;
color: #333;
font-weight: bold;
}
.map {
width: 400px;
position: relative;
margin-top: 80px;
}
.flag {
width: 150px;
position: absolute;
top: 50px;
left: 50%;
transform: translateX(-50%);
animation: float 3s infinite ease-in-out;
}
@keyframes float {
0%, 100% {
transform: translateX(-50%) translateY(0);
}
50% {
transform: translateX(-50%) translateY(-15px);
}
}
footer {
width: 100%;
background: #222;
color: #fff;
text-align: center;
padding: 20px;
position: fixed;
bottom: 0;
left: 0;
}
</style>
</head>
<body>
<header>
<div class="logo">My Logo</div>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
</header>
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/3/38/India_map_outline.png/600px-India_map_outline.png" class="map" alt="India Map">
<img src="https://upload.wikimedia.org/wikipedia/en/4/41/Flag_of_India.svg" class="flag" alt="Indian Flag">
<footer>
© 2025 My Website | All Rights Reserved
</footer>
</body>
</html>