-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex_FlexWrap.html
More file actions
53 lines (49 loc) · 1.35 KB
/
index_FlexWrap.html
File metadata and controls
53 lines (49 loc) · 1.35 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
body {
margin: 0;
padding: 0;
}
.container {
margin: 0;
height: calc(100vh - 20px);
width: calc(100vw -20px);
border: 10px solid red;
display: flex;
align-items: center;
justify-content: center;
}
.container .img-blocks {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
}
.container .img-blocks img{
height: 120px;
width: auto;
margin: 5px;
}
</style>
</head>
<body>
<div class="container">
<div class="img-blocks">
<img src="images/1.jpg" alt="one">
<img src="images/2.jpg" alt="Two">
<img src="images/3.jpg" alt="Three">
<img src="images/4.jpg" alt="Four">
<img src="images/5.jpg" alt="Five">
<img src="images/6.jpg" alt="Six">
<img src="images/7.jpg" alt="Seven">
<img src="images/8.jpg" alt="Eight">
</div>
</div>
</body>
</html>