-
Notifications
You must be signed in to change notification settings - Fork 0
/
hexagon-grid.html
65 lines (65 loc) · 2.92 KB
/
hexagon-grid.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
<!DOCTYPE html>
<html>
<head>
<title>Hexagon Grid</title>
<link rel="stylesheet" type="text/css" href="./style.css">
</head>
<body>
<div class="hexagon-grid mt-5">
<!-- .hex-row declares a new row for the grid -->
<div class="hex-row">
<!-- .hex class used for each hexagonal element in the grid -->
<div class="hex">
<!-- .img-responsive in Bootstrap 3.x class -->
<!-- NOTE: use .img-fluid for responsive image if you are using Bootstrap 4.x -->
<!-- Demo image paths are given. Please replace it for your use -->
<img src="images/1.png" alt="" class="img-responsive hexImg" />
</div>
<div class="hex">
<img src="images/2.png" alt="" class="img-responsive hexImg" />
</div>
<div class="hex">
<img src="images/3.png" alt="" class="img-responsive hexImg" />
</div>
<div class="hex">
<img src="images/4.png" alt="" class="img-responsive hexImg" />
</div>
<div class="hex">
<img src="images/14.png" alt="" class="img-responsive hexImg" />
</div>
</div>
<!-- .hidden-xs .hidden-sm are Bootstrap 3.x classes for hidding the element based on screen size -->
<div class="hex-row hidden-xs hidden-sm">
<div class="hex">
<img src="images/6.png" alt="" class="img-responsive hexImg" />
</div>
<div class="hex">
<img src="images/7.png" alt="" class="img-responsive hexImg" />
</div>
<div class="hex">
<img src="images/8.png" alt="" class="img-responsive hexImg" />
</div>
<div class="hex">
<img src="images/9.png" alt="" class="img-responsive hexImg" />
</div>
</div>
<div class="hex-row hidden-xs hidden-sm">
<div class="hex">
<img src="images/10.png" alt="" class="img-responsive hexImg" />
</div>
<div class="hex">
<img src="images/11.png" alt="" class="img-responsive hexImg" />
</div>
<div class="hex">
<img src="images/12.png" alt="" class="img-responsive hexImg" />
</div>
<div class="hex">
<img src="images/13.png" alt="" class="img-responsive hexImg" />
</div>
<div class="hex">
<img src="images/5.png" alt="" class="img-responsive hexImg" />
</div>
</div>
</div>
</body>
</html>