-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.css
More file actions
73 lines (62 loc) · 1.5 KB
/
Copy pathindex.css
File metadata and controls
73 lines (62 loc) · 1.5 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
body {
margin: 0;
padding: 0;
min-width: 750px;
font-family: 'Montserrat';
}
a {
text-decoration: none;
color: black;
}
/* header */
header {
padding: 2%;
display: flex;
flex-direction: column;
align-items: center;
gap: 30px;
}
header nav {
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
}
header nav button {
padding: 15px;
font-size: 16px;
}
.menu-items {
display: flex;
align-items: center;
gap: 30px;
font-size: 20px;
}
.social-items {
display: flex;
gap: 30px;
font-size: 30px;
}
/* gallery */
.gallery-section {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
row-gap: 30px;
}
.gallery-section img {
width: 18%;
aspect-ratio: 1/3;
}
footer {
margin-top: 50px;
height: 80px;
background: gray;
}
/* css-1 responsive tasarım için maksimum genişlik 500px için media query yazalım.
css-2 body tag'ini kullanarak sayfanın 300px'den küçük olmasını engelleyelim.
css-3 menu-items class'ında navigasyon linklerinin sütun şeklinde alt alta dizilmesini, genişliklerinin eşit olması için esnemesini(stretch) ve aralarındaki boşluğun yok olmasını sağlayalım.
gallery-section'daki resimlerin mobil tasarımdaki gibi her satırda 2 tane ve sadece ilk 4 item'ın görünür olması isteniyor.
css-4 .gallery-section'daki resimlerin her satırda 2 tane olması için genişliğini %45 yapalım
css-5 .gallery-section'daki resimlerden ilk 4'ünün görünür olması için diğerlerini gizleyelim.
*/