-
Notifications
You must be signed in to change notification settings - Fork 0
/
flex-image-gallery.html
61 lines (52 loc) · 1.74 KB
/
flex-image-gallery.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
<!DOCTYPE html>
<html>
<head>
<script src="pages.js"></script>
<script src="navigation.js"></script>
<link rel="stylesheet" href="style.css" />
<title>Flexbox Image Gallery</title>
<style>
section {
width: 100%;
display: block;
}
section > div.wrapper {
display: flex;
}
a {
display: block;
flex: 0 1 400px;
height: 600px;
overflow: hidden;
border: 3px #eee solid;
border-right: none;
}
a:last-child {
border-right: 3px #eee solid;
}
a:hover,
a:focus {
flex: 0 0 auto;
}
</style>
</head>
<body>
<main class="standard">
<h1 class="border-bottom">Flexbox grow and shrink</code></h1>
<section>
<div class="wrapper">
<a href="#"><img src="https://picsum.photos/400/600" alt=""></a>
<a href="#"><img src="https://picsum.photos/401/600" alt=""></a>
<a href="#"><img src="https://picsum.photos/402/600" alt=""></a>
<a href="#"><img src="https://picsum.photos/403/600" alt=""></a>
<a href="#"><img src="https://picsum.photos/404/600" alt=""></a>
<a href="#"><img src="https://picsum.photos/405/600" alt=""></a>
<a href="#"><img src="https://picsum.photos/406/600" alt=""></a>
<a href="#"><img src="https://picsum.photos/407/600" alt=""></a>
<a href="#"><img src="https://picsum.photos/408/600" alt=""></a>
<a href="#"><img src="https://picsum.photos/409/600" alt=""></a>
</div>
</section>
</main>
</body>
</html>