-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex3.html
37 lines (35 loc) · 985 Bytes
/
index3.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
<!DOCTYPE html>
<html>
<head>
<title>Your Website</title>
<style>
body {
margin: 0;
background-color: black;
overflow: hidden; /* Hide any overflowing content */
}
.image-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
z-index: -1; /* Place the image behind the other content */
}
.image-container img {
width: 100%;
height: 100%;
object-fit: cover; /* Scale the image to cover the entire container */
object-position: center; /* Center the image within the container */
}
</style>
</head>
<body>
<div class="image-container">
<img src="https://i.ytimg.com/vi/Q6Nsvrnnug8/maxresdefault.jpg" alt="hahan't">
</div>
</body>
</html>