-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.css
92 lines (75 loc) · 1.13 KB
/
example.css
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
* { box-sizing: border-box; }
html, body {
margin:0; padding: 0;
}
body {
max-width: 1400px;
margin: auto;
}
#controls {
background: #eee;
padding: 1rem;
display: flex;
justify-content: center;
margin: 1rem 0;
}
.sidebyside {
display: flex;
justify-content: space-between;
margin-bottom: 1rem;
}
.mainphoto {
width: 49.6%;
height: 340px;
overflow: hidden;
background: #eee;
}
.mainphoto img {
display:block;
margin: 0 auto;
width: 100%;
max-width: 100%;
min-height: 100%;
}
#thumbs {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
list-style: none;
margin: 0;
padding:0;
background: #666;
padding: 5px;
}
#thumbs li {
width: 150px;
height: 80px;
overflow: hidden;
background: #ccc;
}
#thumbs li a {
position: relative; /*http://snook.ca/archives/html_and_css/position_relative_overflow_ie/*/
display: block;
width: 100%;
height: 100%;
overflow: hidden;
}
#thumbs li a img{
display: block;
max-width: 100%;
margin: auto;
}
#thumbs img.tooNarrow {
width: 100%;
}
#thumbs img.tooShort {
height: 100%;
width: auto;
max-width: none;
}
.mainphoto img, #thumbs img {
position:relative;
top: 0px;
left:0px;
transition: 2s;
}