-
Notifications
You must be signed in to change notification settings - Fork 0
/
New1.html
69 lines (52 loc) · 1.52 KB
/
New1.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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
<style type="text/css">
.gallerycontainer{
position: relative;
}
.thumbnail img{
border: 1px solid white;
margin: 0 5px 5px 0;
}
.thumbnail:hover{
background-color: transparent;
}
.thumbnail:hover img{
border: 1px solid black;
}
.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
padding: 5px;
left: -1000px;
visibility: hidden;
color: black;
text-decoration: none;
}
.thumbnail span img{ /*CSS for enlarged image*/
border-width: 0;
padding: 2px;
height:300px;
width:300px;
}
.thumbnail:hover span{ /*CSS for enlarged image*/
visibility: visible;
top: 0;
left: 230px; /*position where enlarged image should offset horizontally */
z-index: 50;
}
</style>
</style>
</head>
<body>
<div class="gallerycontainer">
<a class="thumbnail" href="#thumb"><img src="img1.jpg" width="100px" height="66px" border="0" /><span><img src="img1.jpg" /></span></a>
<a class="thumbnail" href="#thumb"><img src="img2.jpg" width="100px" height="66px" border="0" /><span><img src="img2.jpg" /></span></a>
<a class="thumbnail" href="#thumb"><img src="img3.jpg" width="100px" height="75px" border="0" /><span><img src="img3.jpg" /></span></a>
<a class="thumbnail" href="#thumb"><img src="img4.jpg" width="100px" height="70px" border="0" /><span><img src="img4.jpg" /></span></a>
<a class="thumbnail" href="#thumb"><img src="img5.jpg" width="100px" height="75px" border="0" /><span><img src="img5.jpg" /></span></a>
</div>
</body>
</html>