-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathresponsiveImageGallery.html
More file actions
75 lines (75 loc) · 1.76 KB
/
Copy pathresponsiveImageGallery.html
File metadata and controls
75 lines (75 loc) · 1.76 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Responsive Image Gallery</title>
<style>
div.gallery {
border: 1px solid black;
margin: 10px;
padding: 2px;
padding-bottom: ;
}
div.gallery img {
width: 100%;
height: auto;
}
div.desc {
padding: 5px;
text-align: center;
background-color: lightblue;
}
* {
box-sizing: border-box;
}
.responsive {
width: 31.99%;
float: left;
}
@media only screen and(max-width: 700px;) {
.responsive {
width: 49.99%;
margin: 6px 0;
}
}
@media only screen and(max-width: 500px;) {
.responsive {
width: 99.99%;
margin: ;
}
}
.clearfix:after {
content: "";
display: table;
clear: both;
}
</style>
</head>
<body>
<div class="responsive">
<div class="gallery">
<a href="img/imagetwo.jpg" terget="_blank">
<img src="img/imagetwo.jpg" alt="imagetwo"
/></a>
<div class="desc">Description</div>
</div>
</div>
<div class="responsive">
<div class="gallery">
<a href="img/imagetwo.jpg" terget="_blank">
<img src="img/imagetwo.jpg" alt="imagetwo"
/></a>
<div class="desc">Description</div>
</div>
</div>
<div class="responsive">
<div class="gallery">
<a href="img/imagetwo.jpg" terget="_blank">
<img src="img/imagetwo.jpg" alt="imagetwo"
/></a>
<div class="desc">Description</div>
</div>
</div>
</body>
</html>