-
Notifications
You must be signed in to change notification settings - Fork 0
/
Image Galllery.html
124 lines (98 loc) · 2.46 KB
/
Image Galllery.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<html>
<head>
<title> Image Gallery </title>
<style>
/* Three image containers (use 25% for four, and 50% for two, etc) */
#container{
width: 500px;
margin: 0 auto;
}
div.img {
margin: 5px;
padding: 5px;
border: 1px solid #0000ff;
height: auto;
width: auto;
float: left;
text-align: center;
}
div.img img {
display: inline;
margin: 5px;
border: 1px solid #ffffff;
}
div.img a:hover img {
border: 1px solid #0000ff;
}
div.desc {
text-align: center;
font-weight: normal;
width: 120px;
margin: 5px;
}
h1{text-align: center;}
.hero-image {
background-image: url("https://media.giphy.com/media/edGgciAJpfHEI/giphy.gif");
height: 50%;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
}
.hero-text {
text-align: center;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: black
}
.hero-text button {
border: none;
outline: 0;
display: inline-block;
padding: 10px 25px;
color: black;
background-color: #ddd;
text-align: center;
cursor: pointer;
}
.hero-text button:hover {
background-color: #555;
color: white;
}
</style>
</head>
<body>
<div class="hero-image">
<div class="hero-text">
<h1 style="font-size:50px"> Image Gallery </h1>
<button> Click on me for nothing </button>
</div>
</div>
<h1> Các danh lam thắng cảnh đẹp ở Việt Nam</h1>
<div class="row">
<div id="container">
<div class="img">
<a><img src="https://vneconomy.mediacdn.vn/zoom/710_400/GmdFG4zMHuawX2rnnhh6npm0yeThwh/Image/2016/09/vinhhalong_vietnam-a26bc.jpg" alt="Klematis" width="500" height="300">
</a>
<div class="desc">Add a description of the image here</div>
</div>
<div class="img">
<a><img src="https://3.bp.blogspot.com/-DXOfPolGkeQ/V59Lgv4wVeI/AAAAAAAAA80/3IKihS4Cd6gf09_Csx3eVI3LzteNLxRZwCLcB/s1600/danh-lam-thang-canh-viet-nam.jpg
" alt="Klematis" width="500" height="300"></a>
<div class="desc">Add a description of the image here</div>
</div>
<div class="img">
<a><img src="https://topxephang.com/wp-content/uploads/2018/04/ho-guom-5.jpg
" alt="Klematis" width="500" height="300"></a>
<div class="desc">Add a description of the image here</div>
</div>
<div class="img">
<a><img src="https://topxephang.com/wp-content/uploads/2018/04/sapa.jpg
" alt="Klematis" width="500" height="300"></a>
<div class="desc">Add a description of the image here</div>
</div>
<div>
</body>
</html>