-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
58 lines (53 loc) · 1.4 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSS lightbox</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>CSS lightbox</h1>
<p>A responsive CSS-only lightbox (<a href="https://github.com/DaveEveritt/css-lightbox">see code on GitHub</a>)</p>
<!-- thumbnail images wrapped in links -->
<section class="gallery">
<figure>
<a href="#img1"><img src="img/img1.jpg"></a>
</figure>
<figure>
<a href="#img2"><img src="img/img2.jpg"></a>
</figure>
<figure>
<a href="#img3"><img src="img/img3.jpg"></a>
</figure>
</section>
<!-- lightbox image containers, hidden with CSS -->
<div class="lightbox" id="img1">
<figure>
<figcaption>
Mountains with vegetation
<a class="close" href="#">✕</a>
</figcaption>
<img src="img/img1.jpg">
</figure>
</div>
<div class="lightbox" id="img2">
<figure>
<figcaption>
Sea and stromatolite-type rocks
<a class="close" href="#">✕</a>
</figcaption>
<img src="img/img2.jpg">
</figure>
</div>
<div class="lightbox" id="img3">
<figure>
<figcaption>
Looks like the Himalyas, probably is
<a class="close" href="#">✕</a>
</figcaption>
<img src="img/img3.jpg">
</figure>
</div>
</body>
</html>