-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
76 lines (63 loc) · 1.6 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>Image Overlay</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h1 class="title" align="center">Image Overlay Hover</h1>
<br>
<!-- BASIC CODE TO CREATE ONE IMAGE WITH OVERLAY -->
<!-- <div class="container">
<img src="kitten1.jpg" alt="kitten" class="image">
<div class="overlay overlayLeft">
<div class="text">Left</div>
</div>
</div> -->
<div align="center">
<!-- FIRST ROW -->
<div>
<div class="container">
<img src="kitten1.jpg" alt="kitten" class="image">
<div class="overlay overlayLeft">
<div class="text">Left</div>
</div>
</div>
<div class="container">
<img src="kitten2.jpg" alt="kitten" class="image">
<div class="overlay overlayRight">
<div class="text">Right</div>
</div>
</div>
<div class="container">
<img src="kitten3.jpg" alt="kitten" class="image">
<div class="overlay overlayFade">
<div class="text">Fade</div>
</div>
</div>
</div>
<!-- SECOND ROW -->
<div>
<div class="container">
<img src="puppy1.jpg" alt="puppy" class="image">
<div class="overlay overlayTop">
<div class="text">Top</div>
</div>
</div>
<div class="container">
<img src="puppy2.jpg" alt="puppy" class="image">
<div class="overlay overlayBottom">
<div class="text">Bottom</div>
</div>
</div>
<div class="container">
<img src="puppy3.jpg" alt="puppy" class="image">
<div class="overlay overlayCross">
<div class="text">Cross</div>
</div>
</div>
</div>
</div>
</body>
</html>