-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphoto2.html
104 lines (91 loc) · 1.76 KB
/
photo2.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
101
102
103
104
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Photo Album</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
}
.container {
max-width: 800px;
margin: 20px auto;
padding: 20px;
background-color: #fff;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h1 {
text-align: center;
}
.photo-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 10px;
}
.photo-item {
position: relative;
overflow: hidden;
border-radius: 5px;
}
.photo-item img {
max-width: 100%;
height: auto;
transition: transform 0.3s ease;
}
.photo-item:hover img {
transform: scale(1.1);
}
.photo-item::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
opacity: 0;
transition: opacity 0.3s ease;
}
.photo-item:hover::after {
opacity: 1;
}
.photo-item p {
position: absolute;
bottom: 10px;
left: 10px;
margin: 0;
color: #fff;
font-size: 14px;
}
</style>
</head>
<body>
<div class="container">
<h1>Photo Album</h1>
<div class="photo-grid">
<div class="photo-item">
<img src="munna.JPG" alt="Photo 1">
<p>Photo 1</p>
</div>
<div class="photo-item">
<img src="jny.JPG" alt="Photo 2">
<p>Photo 2</p>
</div>
<div class="photo-item">
<img src="jny1.JPG" alt="Photo 3">
<p>Photo 3</p>
</div>
<div class="photo-item">
<img src="jny2.JPG" alt="Photo 4">
<p>Photo 4</p>
</div>
</div>
</div>
</div>
</body>
</html>