-
Notifications
You must be signed in to change notification settings - Fork 2
/
Gallery.css
48 lines (41 loc) · 1.02 KB
/
Gallery.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
/* Container of the centered image */
.container {
margin-top: 2em;
position: relative;
text-align: center;
color: #ffffff;
}
/* Styling of the text on the centered image */
.centered {
position: absolute;
top: 50%;
left: 50%;
color: #ffffff;
font-family: "Arapey", Sans-serif;
font-size: 90px;
text-shadow: 0px 0px 10px rgb(0 0 0 / 30%);
transform: translate(-50%, -50%);
}
/* The gallery grid */
#galleryView{
margin-top: 20px;
width: 40em;
display: grid;
grid-template-columns: 0.3fr 0.3fr 0.3fr 0.3fr;
padding: 5% 10% 5% 8%;
row-gap: 20px;
column-gap: 50px;
align-content: center;
}
/* The standanrd size of the pictures */
section img{
height: 300px;
width: 280px;
transition: 1s;
filter: brightness(85%);
}
section img:hover{
position:relative ;
filter: brightness(110%);
transform: scale(1.1);
}